Merge pull request #9412 from annando/mobile-announce

Don't change resharer when resharing/add mobile button
This commit is contained in:
Hypolite Petovan 2020-10-11 23:49:19 -04:00 committed by GitHub
commit 1b273e25b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 234 additions and 182 deletions

View file

@ -2028,7 +2028,7 @@ class Item
*/ */
private static function setOwnerforResharedItem(array $item) private static function setOwnerforResharedItem(array $item)
{ {
$parent = self::selectFirst(['id', 'owner-id', 'author-id', 'author-link', 'origin', 'post-type'], $parent = self::selectFirst(['id', 'causer-id', 'owner-id', 'author-id', 'author-link', 'origin', 'post-type'],
['uri-id' => $item['thr-parent-id'], 'uid' => $item['uid']]); ['uri-id' => $item['thr-parent-id'], 'uid' => $item['uid']]);
if (!DBA::isResult($parent)) { if (!DBA::isResult($parent)) {
Logger::error('Parent not found', ['uri-id' => $item['thr-parent-id'], 'uid' => $item['uid']]); Logger::error('Parent not found', ['uri-id' => $item['thr-parent-id'], 'uid' => $item['uid']]);
@ -2048,6 +2048,11 @@ class Item
} }
if ($author['contact-type'] != Contact::TYPE_COMMUNITY) { if ($author['contact-type'] != Contact::TYPE_COMMUNITY) {
if ($parent['post-type'] == self::PT_ANNOUNCEMENT) {
Logger::info('The parent is already marked as announced: quit', ['causer' => $parent['causer-id'], 'owner' => $parent['owner-id'], 'author' => $parent['author-id'], 'uid' => $item['uid']]);
return;
}
if (Contact::isSharing($parent['owner-id'], $item['uid'])) { if (Contact::isSharing($parent['owner-id'], $item['uid'])) {
Logger::info('The resharer is no forum: quit', ['resharer' => $item['author-id'], 'owner' => $parent['owner-id'], 'author' => $parent['author-id'], 'uid' => $item['uid']]); Logger::info('The resharer is no forum: quit', ['resharer' => $item['author-id'], 'owner' => $parent['owner-id'], 'author' => $parent['author-id'], 'uid' => $item['uid']]);
return; return;

View file

@ -22,10 +22,13 @@
namespace Friendica\Module; namespace Friendica\Module;
use Friendica\BaseModule; use Friendica\BaseModule;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Protocol;
use Friendica\Core\System; use Friendica\Core\System;
use Friendica\DI; use Friendica\DI;
use Friendica\Model\Item; use Friendica\Model\Item;
use Friendica\Core\Session; use Friendica\Core\Session;
use Friendica\Database\DBA;
use Friendica\Network\HTTPException; use Friendica\Network\HTTPException;
use Friendica\Util\Strings; use Friendica\Util\Strings;
@ -51,6 +54,13 @@ class Like extends BaseModule
// @TODO: Replace with parameter from router // @TODO: Replace with parameter from router
$itemId = (($app->argc > 1) ? Strings::escapeTags(trim($app->argv[1])) : 0); $itemId = (($app->argc > 1) ? Strings::escapeTags(trim($app->argv[1])) : 0);
if (in_array($verb, [ 'announce', 'unannounce'])) {
$item = Item::selectFirst(['network'], ['id' => $itemId]);
if ($item['network'] == Protocol::DIASPORA) {
self::performDiasporaReshare($itemId);
}
}
if (!Item::performActivity($itemId, $verb, local_user())) { if (!Item::performActivity($itemId, $verb, local_user())) {
throw new HTTPException\BadRequestException(); throw new HTTPException\BadRequestException();
} }
@ -72,4 +82,33 @@ class Like extends BaseModule
System::jsonExit(['status' => 'OK']); System::jsonExit(['status' => 'OK']);
} }
private static function performDiasporaReshare(int $itemId)
{
$fields = ['uri-id', 'body', 'title', 'attach', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink'];
$item = Item::selectFirst($fields, ['id' => $itemId, 'private' => [Item::PUBLIC, Item::UNLISTED]]);
if (!DBA::isResult($item) || ($item['body'] == '')) {
return;
}
if (strpos($item['body'], '[/share]') !== false) {
$pos = strpos($item['body'], '[share');
$post = substr($item['body'], $pos);
} else {
$post = BBCode::getShareOpeningTag($item['author-name'], $item['author-link'], $item['author-avatar'], $item['plink'], $item['created'], $item['guid']);
if (!empty($item['title'])) {
$post .= '[h3]' . $item['title'] . "[/h3]\n";
}
$post .= $item['body'];
$post .= '[/share]';
}
$_REQUEST['body'] = $post;
$_REQUEST['attach'] = $item['attach'];
$_REQUEST['profile_uid'] = local_user();
require_once 'mod/item.php';
item_post(DI::app());
}
} }

View file

@ -176,7 +176,12 @@ class Post
: false); : false);
$shareable = in_array($conv->getProfileOwner(), [0, local_user()]) && $item['private'] != Item::PRIVATE; $shareable = in_array($conv->getProfileOwner(), [0, local_user()]) && $item['private'] != Item::PRIVATE;
$announceable = $shareable && in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::TWITTER]); $announceable = $shareable && in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::TWITTER]);
// On Diaspora only toplevel posts can be reshared
if ($announceable && ($item['network'] == Protocol::DIASPORA) && ($item['gravity'] != GRAVITY_PARENT)) {
$announceable = false;
}
$edpost = false; $edpost = false;
@ -346,10 +351,10 @@ class Post
$buttons['like'] = [DI::l10n()->t("I like this \x28toggle\x29") , DI::l10n()->t("like")]; $buttons['like'] = [DI::l10n()->t("I like this \x28toggle\x29") , DI::l10n()->t("like")];
$buttons['dislike'] = [DI::l10n()->t("I don't like this \x28toggle\x29"), DI::l10n()->t("dislike")]; $buttons['dislike'] = [DI::l10n()->t("I don't like this \x28toggle\x29"), DI::l10n()->t("dislike")];
if ($shareable) { if ($shareable) {
$buttons['share'] = [DI::l10n()->t('Share this'), DI::l10n()->t('Share')]; $buttons['share'] = [DI::l10n()->t('Quote and share this'), DI::l10n()->t('Quote Share')];
} }
if ($announceable) { if ($announceable) {
$buttons['announce'] = [DI::l10n()->t('Announce this'), DI::l10n()->t('Announce')]; $buttons['announce'] = [DI::l10n()->t('Share this'), DI::l10n()->t('Share')];
} }
} }

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2020.12-dev\n" "Project-Id-Version: 2020.12-dev\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-10 07:11+0000\n" "POT-Creation-Date: 2020-10-12 02:45+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -51,13 +51,13 @@ msgstr ""
#: mod/message.php:206 mod/message.php:375 mod/events.php:572 #: mod/message.php:206 mod/message.php:375 mod/events.php:572
#: mod/photos.php:959 mod/photos.php:1062 mod/photos.php:1348 #: mod/photos.php:959 mod/photos.php:1062 mod/photos.php:1348
#: mod/photos.php:1400 mod/photos.php:1457 mod/photos.php:1530 #: mod/photos.php:1400 mod/photos.php:1457 mod/photos.php:1530
#: src/Object/Post.php:943 src/Module/Debug/Localtime.php:64 #: src/Object/Post.php:953 src/Module/Debug/Localtime.php:64
#: src/Module/Profile/Profile.php:241 src/Module/FriendSuggest.php:129 #: src/Module/Profile/Profile.php:241 src/Module/FriendSuggest.php:129
#: src/Module/Install.php:230 src/Module/Install.php:270 #: src/Module/Install.php:230 src/Module/Install.php:270
#: src/Module/Install.php:306 src/Module/Delegation.php:151 #: src/Module/Install.php:306 src/Module/Delegation.php:151
#: src/Module/Contact.php:578 src/Module/Invite.php:175 #: src/Module/Contact.php:578 src/Module/Invite.php:175
#: src/Module/Item/Compose.php:144 src/Module/Contact/Poke.php:156 #: src/Module/Item/Compose.php:144 src/Module/Contact/Poke.php:156
#: src/Module/Contact/Advanced.php:140 #: src/Module/Contact/Advanced.php:148
#: src/Module/Settings/Profile/Index.php:237 #: src/Module/Settings/Profile/Index.php:237
msgid "Submit" msgid "Submit"
msgstr "" msgstr ""
@ -144,7 +144,7 @@ msgstr ""
msgid "Enter name or interest" msgid "Enter name or interest"
msgstr "" msgstr ""
#: view/theme/vier/theme.php:171 include/conversation.php:930 #: view/theme/vier/theme.php:171 include/conversation.php:931
#: mod/follow.php:163 src/Model/Contact.php:964 src/Model/Contact.php:977 #: mod/follow.php:163 src/Model/Contact.php:964 src/Model/Contact.php:977
#: src/Content/Widget.php:75 #: src/Content/Widget.php:75
msgid "Connect/Follow" msgid "Connect/Follow"
@ -423,7 +423,7 @@ msgstr ""
msgid "Manage/edit friends and contacts" msgid "Manage/edit friends and contacts"
msgstr "" msgstr ""
#: view/theme/frio/theme.php:321 include/conversation.php:909 #: view/theme/frio/theme.php:321 include/conversation.php:910
msgid "Follow Thread" msgid "Follow Thread"
msgstr "" msgstr ""
@ -482,7 +482,7 @@ msgstr ""
msgid "%1$s poked %2$s" msgid "%1$s poked %2$s"
msgstr "" msgstr ""
#: include/conversation.php:221 src/Model/Item.php:3442 #: include/conversation.php:221 src/Model/Item.php:3447
msgid "event" msgid "event"
msgstr "" msgstr ""
@ -490,7 +490,7 @@ msgstr ""
msgid "status" msgid "status"
msgstr "" msgstr ""
#: include/conversation.php:229 mod/tagger.php:89 src/Model/Item.php:3444 #: include/conversation.php:229 mod/tagger.php:89 src/Model/Item.php:3449
msgid "photo" msgid "photo"
msgstr "" msgstr ""
@ -499,7 +499,7 @@ msgstr ""
msgid "%1$s tagged %2$s's %3$s with %4$s" msgid "%1$s tagged %2$s's %3$s with %4$s"
msgstr "" msgstr ""
#: include/conversation.php:560 mod/photos.php:1488 src/Object/Post.php:229 #: include/conversation.php:560 mod/photos.php:1488 src/Object/Post.php:236
msgid "Select" msgid "Select"
msgstr "" msgstr ""
@ -509,385 +509,385 @@ msgstr ""
msgid "Delete" msgid "Delete"
msgstr "" msgstr ""
#: include/conversation.php:595 src/Object/Post.php:439 src/Object/Post.php:440 #: include/conversation.php:596 src/Object/Post.php:449 src/Object/Post.php:450
#, php-format #, php-format
msgid "View %s's profile @ %s" msgid "View %s's profile @ %s"
msgstr "" msgstr ""
#: include/conversation.php:608 src/Object/Post.php:427 #: include/conversation.php:609 src/Object/Post.php:437
msgid "Categories:" msgid "Categories:"
msgstr "" msgstr ""
#: include/conversation.php:609 src/Object/Post.php:428 #: include/conversation.php:610 src/Object/Post.php:438
msgid "Filed under:" msgid "Filed under:"
msgstr "" msgstr ""
#: include/conversation.php:616 src/Object/Post.php:453 #: include/conversation.php:617 src/Object/Post.php:463
#, php-format #, php-format
msgid "%s from %s" msgid "%s from %s"
msgstr "" msgstr ""
#: include/conversation.php:631 #: include/conversation.php:632
msgid "View in context" msgid "View in context"
msgstr "" msgstr ""
#: include/conversation.php:633 include/conversation.php:1189 #: include/conversation.php:634 include/conversation.php:1190
#: mod/wallmessage.php:155 mod/message.php:205 mod/message.php:376 #: mod/wallmessage.php:155 mod/message.php:205 mod/message.php:376
#: mod/editpost.php:104 mod/photos.php:1373 src/Object/Post.php:486 #: mod/editpost.php:104 mod/photos.php:1373 src/Object/Post.php:496
#: src/Module/Item/Compose.php:159 #: src/Module/Item/Compose.php:159
msgid "Please wait" msgid "Please wait"
msgstr "" msgstr ""
#: include/conversation.php:697 #: include/conversation.php:698
msgid "remove" msgid "remove"
msgstr "" msgstr ""
#: include/conversation.php:701 #: include/conversation.php:702
msgid "Delete Selected Items" msgid "Delete Selected Items"
msgstr "" msgstr ""
#: include/conversation.php:723 include/conversation.php:726 #: include/conversation.php:724 include/conversation.php:727
#: include/conversation.php:729 include/conversation.php:732 #: include/conversation.php:730 include/conversation.php:733
#, php-format #, php-format
msgid "You had been addressed (%s)." msgid "You had been addressed (%s)."
msgstr "" msgstr ""
#: include/conversation.php:735 #: include/conversation.php:736
#, php-format #, php-format
msgid "You are following %s." msgid "You are following %s."
msgstr "" msgstr ""
#: include/conversation.php:738 #: include/conversation.php:739
msgid "Tagged" msgid "Tagged"
msgstr "" msgstr ""
#: include/conversation.php:748 include/conversation.php:1077 #: include/conversation.php:749 include/conversation.php:1078
#: include/conversation.php:1120 #: include/conversation.php:1121
#, php-format #, php-format
msgid "%s reshared this." msgid "%s reshared this."
msgstr "" msgstr ""
#: include/conversation.php:750 #: include/conversation.php:751
msgid "Reshared" msgid "Reshared"
msgstr "" msgstr ""
#: include/conversation.php:750 #: include/conversation.php:751
#, php-format #, php-format
msgid "Reshared by %s" msgid "Reshared by %s"
msgstr "" msgstr ""
#: include/conversation.php:753 #: include/conversation.php:754
#, php-format #, php-format
msgid "%s is participating in this thread." msgid "%s is participating in this thread."
msgstr "" msgstr ""
#: include/conversation.php:756 #: include/conversation.php:757
msgid "Stored" msgid "Stored"
msgstr "" msgstr ""
#: include/conversation.php:759 #: include/conversation.php:760
msgid "Global" msgid "Global"
msgstr "" msgstr ""
#: include/conversation.php:762 #: include/conversation.php:763
msgid "Relayed" msgid "Relayed"
msgstr "" msgstr ""
#: include/conversation.php:762 #: include/conversation.php:763
#, php-format #, php-format
msgid "Relayed by %s." msgid "Relayed by %s."
msgstr "" msgstr ""
#: include/conversation.php:765 #: include/conversation.php:766
msgid "Fetched" msgid "Fetched"
msgstr "" msgstr ""
#: include/conversation.php:765 #: include/conversation.php:766
#, php-format #, php-format
msgid "Fetched because of %s" msgid "Fetched because of %s"
msgstr "" msgstr ""
#: include/conversation.php:910 src/Model/Contact.php:969 #: include/conversation.php:911 src/Model/Contact.php:969
msgid "View Status" msgid "View Status"
msgstr "" msgstr ""
#: include/conversation.php:911 include/conversation.php:933 #: include/conversation.php:912 include/conversation.php:934
#: src/Module/Directory.php:166 src/Module/Settings/Profile/Index.php:240 #: src/Module/Directory.php:166 src/Module/Settings/Profile/Index.php:240
#: src/Model/Contact.php:895 src/Model/Contact.php:961 #: src/Model/Contact.php:895 src/Model/Contact.php:961
#: src/Model/Contact.php:970 #: src/Model/Contact.php:970
msgid "View Profile" msgid "View Profile"
msgstr "" msgstr ""
#: include/conversation.php:912 src/Model/Contact.php:971 #: include/conversation.php:913 src/Model/Contact.php:971
msgid "View Photos" msgid "View Photos"
msgstr "" msgstr ""
#: include/conversation.php:913 src/Model/Contact.php:962 #: include/conversation.php:914 src/Model/Contact.php:962
#: src/Model/Contact.php:972 #: src/Model/Contact.php:972
msgid "Network Posts" msgid "Network Posts"
msgstr "" msgstr ""
#: include/conversation.php:914 src/Model/Contact.php:963 #: include/conversation.php:915 src/Model/Contact.php:963
#: src/Model/Contact.php:973 #: src/Model/Contact.php:973
msgid "View Contact" msgid "View Contact"
msgstr "" msgstr ""
#: include/conversation.php:915 src/Model/Contact.php:975 #: include/conversation.php:916 src/Model/Contact.php:975
msgid "Send PM" msgid "Send PM"
msgstr "" msgstr ""
#: include/conversation.php:916 src/Module/Contact.php:599 #: include/conversation.php:917 src/Module/Contact.php:599
#: src/Module/Contact.php:850 src/Module/Contact.php:1132 #: src/Module/Contact.php:850 src/Module/Contact.php:1132
#: src/Module/Admin/Users.php:249 src/Module/Admin/Blocklist/Contact.php:84 #: src/Module/Admin/Users.php:249 src/Module/Admin/Blocklist/Contact.php:84
msgid "Block" msgid "Block"
msgstr "" msgstr ""
#: include/conversation.php:917 src/Module/Notifications/Notification.php:59 #: include/conversation.php:918 src/Module/Notifications/Notification.php:59
#: src/Module/Notifications/Introductions.php:112 #: src/Module/Notifications/Introductions.php:112
#: src/Module/Notifications/Introductions.php:187 src/Module/Contact.php:600 #: src/Module/Notifications/Introductions.php:187 src/Module/Contact.php:600
#: src/Module/Contact.php:851 src/Module/Contact.php:1140 #: src/Module/Contact.php:851 src/Module/Contact.php:1140
msgid "Ignore" msgid "Ignore"
msgstr "" msgstr ""
#: include/conversation.php:921 src/Object/Post.php:416 #: include/conversation.php:922 src/Object/Post.php:426
msgid "Languages" msgid "Languages"
msgstr "" msgstr ""
#: include/conversation.php:925 src/Model/Contact.php:976 #: include/conversation.php:926 src/Model/Contact.php:976
msgid "Poke" msgid "Poke"
msgstr "" msgstr ""
#: include/conversation.php:1062 #: include/conversation.php:1063
#, php-format #, php-format
msgid "%s likes this." msgid "%s likes this."
msgstr "" msgstr ""
#: include/conversation.php:1065 #: include/conversation.php:1066
#, php-format #, php-format
msgid "%s doesn't like this." msgid "%s doesn't like this."
msgstr "" msgstr ""
#: include/conversation.php:1068 #: include/conversation.php:1069
#, php-format #, php-format
msgid "%s attends." msgid "%s attends."
msgstr "" msgstr ""
#: include/conversation.php:1071 #: include/conversation.php:1072
#, php-format #, php-format
msgid "%s doesn't attend." msgid "%s doesn't attend."
msgstr "" msgstr ""
#: include/conversation.php:1074 #: include/conversation.php:1075
#, php-format #, php-format
msgid "%s attends maybe." msgid "%s attends maybe."
msgstr "" msgstr ""
#: include/conversation.php:1085 #: include/conversation.php:1086
msgid "and" msgid "and"
msgstr "" msgstr ""
#: include/conversation.php:1091 #: include/conversation.php:1092
#, php-format #, php-format
msgid "and %d other people" msgid "and %d other people"
msgstr "" msgstr ""
#: include/conversation.php:1099 #: include/conversation.php:1100
#, php-format #, php-format
msgid "<span %1$s>%2$d people</span> like this" msgid "<span %1$s>%2$d people</span> like this"
msgstr "" msgstr ""
#: include/conversation.php:1100 #: include/conversation.php:1101
#, php-format #, php-format
msgid "%s like this." msgid "%s like this."
msgstr "" msgstr ""
#: include/conversation.php:1103 #: include/conversation.php:1104
#, php-format #, php-format
msgid "<span %1$s>%2$d people</span> don't like this" msgid "<span %1$s>%2$d people</span> don't like this"
msgstr "" msgstr ""
#: include/conversation.php:1104 #: include/conversation.php:1105
#, php-format #, php-format
msgid "%s don't like this." msgid "%s don't like this."
msgstr "" msgstr ""
#: include/conversation.php:1107 #: include/conversation.php:1108
#, php-format #, php-format
msgid "<span %1$s>%2$d people</span> attend" msgid "<span %1$s>%2$d people</span> attend"
msgstr "" msgstr ""
#: include/conversation.php:1108 #: include/conversation.php:1109
#, php-format #, php-format
msgid "%s attend." msgid "%s attend."
msgstr "" msgstr ""
#: include/conversation.php:1111 #: include/conversation.php:1112
#, php-format #, php-format
msgid "<span %1$s>%2$d people</span> don't attend" msgid "<span %1$s>%2$d people</span> don't attend"
msgstr "" msgstr ""
#: include/conversation.php:1112 #: include/conversation.php:1113
#, php-format #, php-format
msgid "%s don't attend." msgid "%s don't attend."
msgstr "" msgstr ""
#: include/conversation.php:1115 #: include/conversation.php:1116
#, php-format #, php-format
msgid "<span %1$s>%2$d people</span> attend maybe" msgid "<span %1$s>%2$d people</span> attend maybe"
msgstr "" msgstr ""
#: include/conversation.php:1116 #: include/conversation.php:1117
#, php-format #, php-format
msgid "%s attend maybe." msgid "%s attend maybe."
msgstr "" msgstr ""
#: include/conversation.php:1119 #: include/conversation.php:1120
#, php-format #, php-format
msgid "<span %1$s>%2$d people</span> reshared this" msgid "<span %1$s>%2$d people</span> reshared this"
msgstr "" msgstr ""
#: include/conversation.php:1149 #: include/conversation.php:1150
msgid "Visible to <strong>everybody</strong>" msgid "Visible to <strong>everybody</strong>"
msgstr "" msgstr ""
#: include/conversation.php:1150 src/Object/Post.php:953 #: include/conversation.php:1151 src/Object/Post.php:963
#: src/Module/Item/Compose.php:153 #: src/Module/Item/Compose.php:153
msgid "Please enter a image/video/audio/webpage URL:" msgid "Please enter a image/video/audio/webpage URL:"
msgstr "" msgstr ""
#: include/conversation.php:1151 #: include/conversation.php:1152
msgid "Tag term:" msgid "Tag term:"
msgstr "" msgstr ""
#: include/conversation.php:1152 src/Module/Filer/SaveTag.php:65 #: include/conversation.php:1153 src/Module/Filer/SaveTag.php:65
msgid "Save to Folder:" msgid "Save to Folder:"
msgstr "" msgstr ""
#: include/conversation.php:1153 #: include/conversation.php:1154
msgid "Where are you right now?" msgid "Where are you right now?"
msgstr "" msgstr ""
#: include/conversation.php:1154 #: include/conversation.php:1155
msgid "Delete item(s)?" msgid "Delete item(s)?"
msgstr "" msgstr ""
#: include/conversation.php:1164 #: include/conversation.php:1165
msgid "New Post" msgid "New Post"
msgstr "" msgstr ""
#: include/conversation.php:1167 #: include/conversation.php:1168 src/Object/Post.php:357
msgid "Share" msgid "Share"
msgstr "" msgstr ""
#: include/conversation.php:1168 mod/editpost.php:89 mod/photos.php:1402 #: include/conversation.php:1169 mod/editpost.php:89 mod/photos.php:1402
#: src/Object/Post.php:944 src/Module/Contact/Poke.php:155 #: src/Object/Post.php:954 src/Module/Contact/Poke.php:155
msgid "Loading..." msgid "Loading..."
msgstr "" msgstr ""
#: include/conversation.php:1169 mod/wallmessage.php:153 mod/message.php:203 #: include/conversation.php:1170 mod/wallmessage.php:153 mod/message.php:203
#: mod/message.php:373 mod/editpost.php:90 #: mod/message.php:373 mod/editpost.php:90
msgid "Upload photo" msgid "Upload photo"
msgstr "" msgstr ""
#: include/conversation.php:1170 mod/editpost.php:91 #: include/conversation.php:1171 mod/editpost.php:91
msgid "upload photo" msgid "upload photo"
msgstr "" msgstr ""
#: include/conversation.php:1171 mod/editpost.php:92 #: include/conversation.php:1172 mod/editpost.php:92
msgid "Attach file" msgid "Attach file"
msgstr "" msgstr ""
#: include/conversation.php:1172 mod/editpost.php:93 #: include/conversation.php:1173 mod/editpost.php:93
msgid "attach file" msgid "attach file"
msgstr "" msgstr ""
#: include/conversation.php:1173 src/Object/Post.php:945 #: include/conversation.php:1174 src/Object/Post.php:955
#: src/Module/Item/Compose.php:145 #: src/Module/Item/Compose.php:145
msgid "Bold" msgid "Bold"
msgstr "" msgstr ""
#: include/conversation.php:1174 src/Object/Post.php:946 #: include/conversation.php:1175 src/Object/Post.php:956
#: src/Module/Item/Compose.php:146 #: src/Module/Item/Compose.php:146
msgid "Italic" msgid "Italic"
msgstr "" msgstr ""
#: include/conversation.php:1175 src/Object/Post.php:947 #: include/conversation.php:1176 src/Object/Post.php:957
#: src/Module/Item/Compose.php:147 #: src/Module/Item/Compose.php:147
msgid "Underline" msgid "Underline"
msgstr "" msgstr ""
#: include/conversation.php:1176 src/Object/Post.php:948 #: include/conversation.php:1177 src/Object/Post.php:958
#: src/Module/Item/Compose.php:148 #: src/Module/Item/Compose.php:148
msgid "Quote" msgid "Quote"
msgstr "" msgstr ""
#: include/conversation.php:1177 src/Object/Post.php:949 #: include/conversation.php:1178 src/Object/Post.php:959
#: src/Module/Item/Compose.php:149 #: src/Module/Item/Compose.php:149
msgid "Code" msgid "Code"
msgstr "" msgstr ""
#: include/conversation.php:1178 src/Object/Post.php:950 #: include/conversation.php:1179 src/Object/Post.php:960
#: src/Module/Item/Compose.php:150 #: src/Module/Item/Compose.php:150
msgid "Image" msgid "Image"
msgstr "" msgstr ""
#: include/conversation.php:1179 src/Object/Post.php:951 #: include/conversation.php:1180 src/Object/Post.php:961
#: src/Module/Item/Compose.php:151 #: src/Module/Item/Compose.php:151
msgid "Link" msgid "Link"
msgstr "" msgstr ""
#: include/conversation.php:1180 src/Object/Post.php:952 #: include/conversation.php:1181 src/Object/Post.php:962
#: src/Module/Item/Compose.php:152 #: src/Module/Item/Compose.php:152
msgid "Link or Media" msgid "Link or Media"
msgstr "" msgstr ""
#: include/conversation.php:1181 mod/editpost.php:100 #: include/conversation.php:1182 mod/editpost.php:100
#: src/Module/Item/Compose.php:155 #: src/Module/Item/Compose.php:155
msgid "Set your location" msgid "Set your location"
msgstr "" msgstr ""
#: include/conversation.php:1182 mod/editpost.php:101 #: include/conversation.php:1183 mod/editpost.php:101
msgid "set location" msgid "set location"
msgstr "" msgstr ""
#: include/conversation.php:1183 mod/editpost.php:102 #: include/conversation.php:1184 mod/editpost.php:102
msgid "Clear browser location" msgid "Clear browser location"
msgstr "" msgstr ""
#: include/conversation.php:1184 mod/editpost.php:103 #: include/conversation.php:1185 mod/editpost.php:103
msgid "clear location" msgid "clear location"
msgstr "" msgstr ""
#: include/conversation.php:1186 mod/editpost.php:117 #: include/conversation.php:1187 mod/editpost.php:117
#: src/Module/Item/Compose.php:160 #: src/Module/Item/Compose.php:160
msgid "Set title" msgid "Set title"
msgstr "" msgstr ""
#: include/conversation.php:1188 mod/editpost.php:119 #: include/conversation.php:1189 mod/editpost.php:119
#: src/Module/Item/Compose.php:161 #: src/Module/Item/Compose.php:161
msgid "Categories (comma-separated list)" msgid "Categories (comma-separated list)"
msgstr "" msgstr ""
#: include/conversation.php:1190 mod/editpost.php:105 #: include/conversation.php:1191 mod/editpost.php:105
msgid "Permission settings" msgid "Permission settings"
msgstr "" msgstr ""
#: include/conversation.php:1191 mod/editpost.php:134 mod/events.php:575 #: include/conversation.php:1192 mod/editpost.php:134 mod/events.php:575
#: mod/photos.php:977 mod/photos.php:1344 #: mod/photos.php:977 mod/photos.php:1344
msgid "Permissions" msgid "Permissions"
msgstr "" msgstr ""
#: include/conversation.php:1200 mod/editpost.php:114 #: include/conversation.php:1201 mod/editpost.php:114
msgid "Public post" msgid "Public post"
msgstr "" msgstr ""
#: include/conversation.php:1204 mod/editpost.php:125 mod/events.php:570 #: include/conversation.php:1205 mod/editpost.php:125 mod/events.php:570
#: mod/photos.php:1401 mod/photos.php:1458 mod/photos.php:1531 #: mod/photos.php:1401 mod/photos.php:1458 mod/photos.php:1531
#: src/Object/Post.php:954 src/Module/Item/Compose.php:154 #: src/Object/Post.php:964 src/Module/Item/Compose.php:154
msgid "Preview" msgid "Preview"
msgstr "" msgstr ""
#: include/conversation.php:1208 mod/settings.php:500 mod/settings.php:526 #: include/conversation.php:1209 mod/settings.php:500 mod/settings.php:526
#: mod/unfollow.php:137 mod/tagrm.php:36 mod/tagrm.php:126 #: mod/unfollow.php:137 mod/tagrm.php:36 mod/tagrm.php:126
#: mod/dfrn_request.php:648 mod/editpost.php:128 mod/follow.php:169 #: mod/dfrn_request.php:648 mod/editpost.php:128 mod/follow.php:169
#: mod/fbrowser.php:105 mod/fbrowser.php:134 mod/photos.php:1045 #: mod/fbrowser.php:105 mod/fbrowser.php:134 mod/photos.php:1045
@ -896,16 +896,16 @@ msgstr ""
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
#: include/conversation.php:1215 mod/editpost.php:132 #: include/conversation.php:1216 mod/editpost.php:132
#: src/Module/Contact.php:340 src/Model/Profile.php:445 #: src/Module/Contact.php:340 src/Model/Profile.php:445
msgid "Message" msgid "Message"
msgstr "" msgstr ""
#: include/conversation.php:1216 mod/editpost.php:133 #: include/conversation.php:1217 mod/editpost.php:133
msgid "Browser" msgid "Browser"
msgstr "" msgstr ""
#: include/conversation.php:1218 mod/editpost.php:136 #: include/conversation.php:1219 mod/editpost.php:136
msgid "Open Compose page" msgid "Open Compose page"
msgstr "" msgstr ""
@ -1460,7 +1460,7 @@ msgstr ""
msgid "Access to this item is restricted." msgid "Access to this item is restricted."
msgstr "" msgstr ""
#: mod/videos.php:252 src/Model/Item.php:3632 #: mod/videos.php:252 src/Model/Item.php:3637
msgid "View Video" msgid "View Video"
msgstr "" msgstr ""
@ -1584,7 +1584,7 @@ msgstr ""
#: mod/settings.php:501 mod/settings.php:527 src/Module/Admin/Users.php:232 #: mod/settings.php:501 mod/settings.php:527 src/Module/Admin/Users.php:232
#: src/Module/Admin/Users.php:243 src/Module/Admin/Users.php:257 #: src/Module/Admin/Users.php:243 src/Module/Admin/Users.php:257
#: src/Module/Admin/Users.php:273 src/Module/Admin/Blocklist/Contact.php:90 #: src/Module/Admin/Users.php:273 src/Module/Admin/Blocklist/Contact.php:90
#: src/Module/Contact/Advanced.php:150 #: src/Module/Contact/Advanced.php:158
msgid "Name" msgid "Name"
msgstr "" msgstr ""
@ -1612,7 +1612,7 @@ msgstr ""
msgid "Connected Apps" msgid "Connected Apps"
msgstr "" msgstr ""
#: mod/settings.php:559 src/Object/Post.php:184 src/Object/Post.php:186 #: mod/settings.php:559 src/Object/Post.php:191 src/Object/Post.php:193
msgid "Edit" msgid "Edit"
msgstr "" msgstr ""
@ -2497,7 +2497,7 @@ msgstr ""
msgid "failed" msgid "failed"
msgstr "" msgstr ""
#: mod/ostatus_subscribe.php:98 src/Object/Post.php:304 #: mod/ostatus_subscribe.php:98 src/Object/Post.php:311
msgid "ignored" msgid "ignored"
msgstr "" msgstr ""
@ -3403,22 +3403,22 @@ msgstr ""
msgid "Rotate CCW (left)" msgid "Rotate CCW (left)"
msgstr "" msgstr ""
#: mod/photos.php:1371 src/Object/Post.php:344 #: mod/photos.php:1371 src/Object/Post.php:351
msgid "I like this (toggle)" msgid "I like this (toggle)"
msgstr "" msgstr ""
#: mod/photos.php:1372 src/Object/Post.php:345 #: mod/photos.php:1372 src/Object/Post.php:352
msgid "I don't like this (toggle)" msgid "I don't like this (toggle)"
msgstr "" msgstr ""
#: mod/photos.php:1397 mod/photos.php:1454 mod/photos.php:1527 #: mod/photos.php:1397 mod/photos.php:1454 mod/photos.php:1527
#: src/Object/Post.php:940 src/Module/Contact.php:1063 #: src/Object/Post.php:950 src/Module/Contact.php:1063
#: src/Module/Item/Compose.php:142 #: src/Module/Item/Compose.php:142
msgid "This is you" msgid "This is you"
msgstr "" msgstr ""
#: mod/photos.php:1399 mod/photos.php:1456 mod/photos.php:1529 #: mod/photos.php:1399 mod/photos.php:1456 mod/photos.php:1529
#: src/Object/Post.php:480 src/Object/Post.php:942 #: src/Object/Post.php:490 src/Object/Post.php:952
msgid "Comment" msgid "Comment"
msgstr "" msgstr ""
@ -4146,188 +4146,192 @@ msgstr ""
msgid "This entry was edited" msgid "This entry was edited"
msgstr "" msgstr ""
#: src/Object/Post.php:174 #: src/Object/Post.php:175
msgid "Private Message" msgid "Private Message"
msgstr "" msgstr ""
#: src/Object/Post.php:213 #: src/Object/Post.php:220
msgid "pinned item" msgid "pinned item"
msgstr "" msgstr ""
#: src/Object/Post.php:218 #: src/Object/Post.php:225
msgid "Delete locally" msgid "Delete locally"
msgstr "" msgstr ""
#: src/Object/Post.php:221 #: src/Object/Post.php:228
msgid "Delete globally" msgid "Delete globally"
msgstr "" msgstr ""
#: src/Object/Post.php:221 #: src/Object/Post.php:228
msgid "Remove locally" msgid "Remove locally"
msgstr "" msgstr ""
#: src/Object/Post.php:234 #: src/Object/Post.php:241
msgid "save to folder" msgid "save to folder"
msgstr "" msgstr ""
#: src/Object/Post.php:269 #: src/Object/Post.php:276
msgid "I will attend" msgid "I will attend"
msgstr "" msgstr ""
#: src/Object/Post.php:269 #: src/Object/Post.php:276
msgid "I will not attend" msgid "I will not attend"
msgstr "" msgstr ""
#: src/Object/Post.php:269 #: src/Object/Post.php:276
msgid "I might attend" msgid "I might attend"
msgstr "" msgstr ""
#: src/Object/Post.php:299 #: src/Object/Post.php:306
msgid "ignore thread" msgid "ignore thread"
msgstr "" msgstr ""
#: src/Object/Post.php:300 #: src/Object/Post.php:307
msgid "unignore thread" msgid "unignore thread"
msgstr "" msgstr ""
#: src/Object/Post.php:301 #: src/Object/Post.php:308
msgid "toggle ignore status" msgid "toggle ignore status"
msgstr "" msgstr ""
#: src/Object/Post.php:313 #: src/Object/Post.php:320
msgid "pin" msgid "pin"
msgstr "" msgstr ""
#: src/Object/Post.php:314 #: src/Object/Post.php:321
msgid "unpin" msgid "unpin"
msgstr "" msgstr ""
#: src/Object/Post.php:315 #: src/Object/Post.php:322
msgid "toggle pin status" msgid "toggle pin status"
msgstr "" msgstr ""
#: src/Object/Post.php:318 #: src/Object/Post.php:325
msgid "pinned" msgid "pinned"
msgstr "" msgstr ""
#: src/Object/Post.php:325 #: src/Object/Post.php:332
msgid "add star" msgid "add star"
msgstr "" msgstr ""
#: src/Object/Post.php:326 #: src/Object/Post.php:333
msgid "remove star" msgid "remove star"
msgstr "" msgstr ""
#: src/Object/Post.php:327 #: src/Object/Post.php:334
msgid "toggle star status" msgid "toggle star status"
msgstr "" msgstr ""
#: src/Object/Post.php:330 #: src/Object/Post.php:337
msgid "starred" msgid "starred"
msgstr "" msgstr ""
#: src/Object/Post.php:334 #: src/Object/Post.php:341
msgid "add tag" msgid "add tag"
msgstr "" msgstr ""
#: src/Object/Post.php:344 #: src/Object/Post.php:351
msgid "like" msgid "like"
msgstr "" msgstr ""
#: src/Object/Post.php:345 #: src/Object/Post.php:352
msgid "dislike" msgid "dislike"
msgstr "" msgstr ""
#: src/Object/Post.php:347 #: src/Object/Post.php:354
msgid "Quote and share this"
msgstr ""
#: src/Object/Post.php:354
msgid "Quote Share"
msgstr ""
#: src/Object/Post.php:357
msgid "Share this" msgid "Share this"
msgstr "" msgstr ""
#: src/Object/Post.php:347 #: src/Object/Post.php:402
msgid "share"
msgstr ""
#: src/Object/Post.php:392
#, php-format #, php-format
msgid "%s (Received %s)" msgid "%s (Received %s)"
msgstr "" msgstr ""
#: src/Object/Post.php:397 #: src/Object/Post.php:407
msgid "Comment this item on your system" msgid "Comment this item on your system"
msgstr "" msgstr ""
#: src/Object/Post.php:397 #: src/Object/Post.php:407
msgid "remote comment" msgid "remote comment"
msgstr "" msgstr ""
#: src/Object/Post.php:409 #: src/Object/Post.php:419
msgid "Pushed" msgid "Pushed"
msgstr "" msgstr ""
#: src/Object/Post.php:409 #: src/Object/Post.php:419
msgid "Pulled" msgid "Pulled"
msgstr "" msgstr ""
#: src/Object/Post.php:441 #: src/Object/Post.php:451
msgid "to" msgid "to"
msgstr "" msgstr ""
#: src/Object/Post.php:442 #: src/Object/Post.php:452
msgid "via" msgid "via"
msgstr "" msgstr ""
#: src/Object/Post.php:443 #: src/Object/Post.php:453
msgid "Wall-to-Wall" msgid "Wall-to-Wall"
msgstr "" msgstr ""
#: src/Object/Post.php:444 #: src/Object/Post.php:454
msgid "via Wall-To-Wall:" msgid "via Wall-To-Wall:"
msgstr "" msgstr ""
#: src/Object/Post.php:481 #: src/Object/Post.php:491
#, php-format #, php-format
msgid "Reply to %s" msgid "Reply to %s"
msgstr "" msgstr ""
#: src/Object/Post.php:484 #: src/Object/Post.php:494
msgid "More" msgid "More"
msgstr "" msgstr ""
#: src/Object/Post.php:502 #: src/Object/Post.php:512
msgid "Notifier task is pending" msgid "Notifier task is pending"
msgstr "" msgstr ""
#: src/Object/Post.php:503 #: src/Object/Post.php:513
msgid "Delivery to remote servers is pending" msgid "Delivery to remote servers is pending"
msgstr "" msgstr ""
#: src/Object/Post.php:504 #: src/Object/Post.php:514
msgid "Delivery to remote servers is underway" msgid "Delivery to remote servers is underway"
msgstr "" msgstr ""
#: src/Object/Post.php:505 #: src/Object/Post.php:515
msgid "Delivery to remote servers is mostly done" msgid "Delivery to remote servers is mostly done"
msgstr "" msgstr ""
#: src/Object/Post.php:506 #: src/Object/Post.php:516
msgid "Delivery to remote servers is done" msgid "Delivery to remote servers is done"
msgstr "" msgstr ""
#: src/Object/Post.php:526 #: src/Object/Post.php:536
#, php-format #, php-format
msgid "%d comment" msgid "%d comment"
msgid_plural "%d comments" msgid_plural "%d comments"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: src/Object/Post.php:527 #: src/Object/Post.php:537
msgid "Show more" msgid "Show more"
msgstr "" msgstr ""
#: src/Object/Post.php:528 #: src/Object/Post.php:538
msgid "Show fewer" msgid "Show fewer"
msgstr "" msgstr ""
#: src/Object/Post.php:539 src/Model/Item.php:3448 #: src/Object/Post.php:549 src/Model/Item.php:3453
msgid "comment" msgid "comment"
msgid_plural "comments" msgid_plural "comments"
msgstr[0] "" msgstr[0] ""
@ -6338,7 +6342,7 @@ msgstr ""
msgid "Pending incoming contact request" msgid "Pending incoming contact request"
msgstr "" msgstr ""
#: src/Module/Contact.php:1123 src/Module/Contact/Advanced.php:138 #: src/Module/Contact.php:1123 src/Module/Contact/Advanced.php:146
msgid "Refetch contact data" msgid "Refetch contact data"
msgstr "" msgstr ""
@ -8680,57 +8684,57 @@ msgstr ""
msgid "Mirror as my own posting" msgid "Mirror as my own posting"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:136 #: src/Module/Contact/Advanced.php:144
msgid "Return to contact editor" msgid "Return to contact editor"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:141 #: src/Module/Contact/Advanced.php:149
msgid "Remote Self" msgid "Remote Self"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:144 #: src/Module/Contact/Advanced.php:152
msgid "Mirror postings from this contact" msgid "Mirror postings from this contact"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:146 #: src/Module/Contact/Advanced.php:154
msgid "" msgid ""
"Mark this contact as remote_self, this will cause friendica to repost new " "Mark this contact as remote_self, this will cause friendica to repost new "
"entries from this contact." "entries from this contact."
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:151 #: src/Module/Contact/Advanced.php:159
msgid "Account Nickname" msgid "Account Nickname"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:152 #: src/Module/Contact/Advanced.php:160
msgid "@Tagname - overrides Name/Nickname" msgid "@Tagname - overrides Name/Nickname"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:153 #: src/Module/Contact/Advanced.php:161
msgid "Account URL" msgid "Account URL"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:154 #: src/Module/Contact/Advanced.php:162
msgid "Account URL Alias" msgid "Account URL Alias"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:155 #: src/Module/Contact/Advanced.php:163
msgid "Friend Request URL" msgid "Friend Request URL"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:156 #: src/Module/Contact/Advanced.php:164
msgid "Friend Confirm URL" msgid "Friend Confirm URL"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:157 #: src/Module/Contact/Advanced.php:165
msgid "Notification Endpoint URL" msgid "Notification Endpoint URL"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:158 #: src/Module/Contact/Advanced.php:166
msgid "Poll/Feed URL" msgid "Poll/Feed URL"
msgstr "" msgstr ""
#: src/Module/Contact/Advanced.php:159 #: src/Module/Contact/Advanced.php:167
msgid "New photo from this URL" msgid "New photo from this URL"
msgstr "" msgstr ""
@ -9569,37 +9573,37 @@ msgstr ""
msgid "Enter a valid existing folder" msgid "Enter a valid existing folder"
msgstr "" msgstr ""
#: src/Model/Item.php:2514 #: src/Model/Item.php:2519
#, php-format #, php-format
msgid "Detected languages in this post:\\n%s" msgid "Detected languages in this post:\\n%s"
msgstr "" msgstr ""
#: src/Model/Item.php:3446 #: src/Model/Item.php:3451
msgid "activity" msgid "activity"
msgstr "" msgstr ""
#: src/Model/Item.php:3451 #: src/Model/Item.php:3456
msgid "post" msgid "post"
msgstr "" msgstr ""
#: src/Model/Item.php:3574 #: src/Model/Item.php:3579
#, php-format #, php-format
msgid "Content warning: %s" msgid "Content warning: %s"
msgstr "" msgstr ""
#: src/Model/Item.php:3649 #: src/Model/Item.php:3654
msgid "bytes" msgid "bytes"
msgstr "" msgstr ""
#: src/Model/Item.php:3694 #: src/Model/Item.php:3699
msgid "View on separate page" msgid "View on separate page"
msgstr "" msgstr ""
#: src/Model/Item.php:3695 #: src/Model/Item.php:3700
msgid "view on separate page" msgid "view on separate page"
msgstr "" msgstr ""
#: src/Model/Item.php:3700 src/Model/Item.php:3706 #: src/Model/Item.php:3705 src/Model/Item.php:3711
#: src/Content/Text/BBCode.php:1071 #: src/Content/Text/BBCode.php:1071
msgid "link to source" msgid "link to source"
msgstr "" msgstr ""

View file

@ -442,10 +442,9 @@ as the value of $top_child_total (this is done at the end of this file)
{{* Button for announcing the item *}} {{* Button for announcing the item *}}
{{if $item.vote.announce}} {{if $item.vote.announce}}
<!-- <div class="btn-group" role="group"> <div class="btn-group" role="group">
<button type="button" class="btn btn-sm button-announces{{if $item.responses.announce.self}} active" aria-pressed="true{{/if}}" id="announce-{{$item.id}}" title="{{$item.vote.announce.0}}" onclick="doLikeAction({{$item.id}}, 'announce'{{if $item.responses.announce.self}}, true{{/if}});" data-toggle="button"><i class="fa fa-retweet-up" aria-hidden="true"></i></button> <button type="button" class="btn btn-sm button-votes{{if $item.responses.announce.self}} active" aria-pressed="true{{/if}}" id="announce-{{$item.id}}" title="{{$item.vote.announce.0}}" onclick="doLikeAction({{$item.id}}, 'announce'{{if $item.responses.announce.self}}, true{{/if}});" data-toggle="button"><i class="fa fa-retweet" aria-hidden="true"></i></button>
</div> </div>
-->
{{/if}} {{/if}}
{{* Button for sharing the item *}} {{* Button for sharing the item *}}