mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update ap helpers, set text type when appropriate
This commit is contained in:
parent
f392fa4ed4
commit
9f4f983f27
2 changed files with 3 additions and 0 deletions
|
@ -364,6 +364,8 @@ class StatusController extends Controller
|
|||
if($photos >= 1 && $videos >= 1) {
|
||||
return 'photo:video:album';
|
||||
}
|
||||
|
||||
return 'text';
|
||||
}
|
||||
|
||||
public function toggleVisibility(Request $request) {
|
||||
|
|
|
@ -416,6 +416,7 @@ class Helpers {
|
|||
public static function importNoteAttachment($data, Status $status)
|
||||
{
|
||||
if(self::verifyAttachments($data) == false) {
|
||||
$status->viewType();
|
||||
return;
|
||||
}
|
||||
$attachments = isset($data['object']) ? $data['object']['attachment'] : $data['attachment'];
|
||||
|
|
Loading…
Reference in a new issue