Merge remote-tracking branch 'upstream/2023.03-rc' into diaspora-signature
This commit is contained in:
commit
a4ef546433
|
@ -136,7 +136,7 @@ class Attachment extends BaseFactory
|
||||||
$url = $this->baseUrl . '/photo/' . $photo['resource-id'] . '-0.' . $ext;
|
$url = $this->baseUrl . '/photo/' . $photo['resource-id'] . '-0.' . $ext;
|
||||||
|
|
||||||
$preview = Photo::selectFirst(['scale'], ["`resource-id` = ? AND `uid` = ? AND `scale` > ?", $photo['resource-id'], $photo['uid'], 0], ['order' => ['scale']]);
|
$preview = Photo::selectFirst(['scale'], ["`resource-id` = ? AND `uid` = ? AND `scale` > ?", $photo['resource-id'], $photo['uid'], 0], ['order' => ['scale']]);
|
||||||
if (empty($scale)) {
|
if (!empty($preview)) {
|
||||||
$preview_url = $this->baseUrl . '/photo/' . $photo['resource-id'] . '-' . $preview['scale'] . '.' . $ext;
|
$preview_url = $this->baseUrl . '/photo/' . $photo['resource-id'] . '-' . $preview['scale'] . '.' . $ext;
|
||||||
} else {
|
} else {
|
||||||
$preview_url = '';
|
$preview_url = '';
|
||||||
|
|
|
@ -785,7 +785,7 @@ class Notify extends BaseRepository
|
||||||
$params['type'] = Model\Notification\Type::COMMENT;
|
$params['type'] = Model\Notification\Type::COMMENT;
|
||||||
$subject = $l10n->t('%1$s Comment to conversation #%2$d by %3$s', $subjectPrefix, $item['parent'], $contact['name']);
|
$subject = $l10n->t('%1$s Comment to conversation #%2$d by %3$s', $subjectPrefix, $item['parent'], $contact['name']);
|
||||||
|
|
||||||
if ($params['verb'] = Activity::LIKE) {
|
if ($params['verb'] == Activity::LIKE) {
|
||||||
switch ($Notification->type) {
|
switch ($Notification->type) {
|
||||||
case Model\Post\UserNotification::TYPE_DIRECT_COMMENT:
|
case Model\Post\UserNotification::TYPE_DIRECT_COMMENT:
|
||||||
$subject = $l10n->t('%1$s %2$s liked your post #%3$d', $subjectPrefix, $contact['name'], $item['parent']);
|
$subject = $l10n->t('%1$s %2$s liked your post #%3$d', $subjectPrefix, $contact['name'], $item['parent']);
|
||||||
|
|
Loading…
Reference in a new issue