Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
(fix): attachments should use actions save
· ea0c176a
Mark Harding
authored
Jun 04, 2019
ea0c176a
Merge branch 'fix/NewsfeedAttachmentActionsSave' into 'master'
· c8faae41
Mark Harding
authored
Jun 04, 2019
(fix): attachments should use actions save See merge request
!188
c8faae41
Hide whitespace changes
Inline
Side-by-side
Controllers/api/v1/newsfeed.php
View file @
c8faae41
...
...
@@ -596,7 +596,7 @@ class newsfeed implements Interfaces\Api
$attachment
->
setNsfw
(
$activity
->
getNsfw
());
$attachment
->
save
();
$save
->
setEntity
(
$attachment
)
->
save
();
switch
(
$attachment
->
subtype
)
{
case
"image"
:
...
...
@@ -644,7 +644,7 @@ class newsfeed implements Interfaces\Api
if
(
$activity
->
getPending
()
&&
$attachment
)
{
$attachment
->
access_id
=
0
;
$attachment
->
save
();
$save
->
setEntity
(
$attachment
)
->
save
();
}
}
...
...