mirror of
https://github.com/friendica/friendica
synced 2024-11-18 19:03:40 +00:00
Merge branch 'friendica:2022.12-rc' into new_image_presentation
This commit is contained in:
commit
1454f3bc2a
2 changed files with 2 additions and 2 deletions
|
@ -303,7 +303,7 @@ class Plaintext
|
||||||
$limit += mb_strlen(trim($word)) - self::URL_LENGTH;
|
$limit += mb_strlen(trim($word)) - self::URL_LENGTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((mb_strlen($part . $word) > $limit - 8) && (mb_strlen($part . $word . $message) > $limit)) {
|
if ((mb_strlen($part . $word) > $limit - 8) && ($parts || (mb_strlen($part . $word . $message) > $limit))) {
|
||||||
$parts[] = trim($part);
|
$parts[] = trim($part);
|
||||||
$part = '';
|
$part = '';
|
||||||
$limit = $baselimit;
|
$limit = $baselimit;
|
||||||
|
|
|
@ -1628,7 +1628,7 @@ class Item
|
||||||
|
|
||||||
if (($uid != 0) && (($item['gravity'] == self::GRAVITY_PARENT) || $is_reshare) &&
|
if (($uid != 0) && (($item['gravity'] == self::GRAVITY_PARENT) || $is_reshare) &&
|
||||||
DI::pConfig()->get($uid, 'system', 'accept_only_sharer') == self::COMPLETION_NONE &&
|
DI::pConfig()->get($uid, 'system', 'accept_only_sharer') == self::COMPLETION_NONE &&
|
||||||
!in_array($item['post-reason'], [self::PR_FOLLOWER, self::PR_TAG, self::PR_TO, self::PR_CC])) {
|
!in_array($item['post-reason'], [self::PR_FOLLOWER, self::PR_TAG, self::PR_TO, self::PR_CC, self::PR_ACTIVITY])) {
|
||||||
Logger::info('Contact is not a follower, thread will not be stored', ['author' => $item['author-link'], 'uid' => $uid, 'uri-id' => $uri_id, 'post-reason' => $item['post-reason']]);
|
Logger::info('Contact is not a follower, thread will not be stored', ['author' => $item['author-link'], 'uid' => $uid, 'uri-id' => $uri_id, 'post-reason' => $item['post-reason']]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue