Merge pull request #10823 from annando/photo-guid

Access contact avatars by guid
This commit is contained in:
Hypolite Petovan 2021-10-04 15:23:19 -04:00 committed by GitHub
commit ac9e5df614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 132 additions and 95 deletions

View File

@ -1,6 +1,6 @@
-- ------------------------------------------
-- Friendica 2021.12-dev (Siberian Iris)
-- DB_UPDATE_VERSION 1436
-- DB_UPDATE_VERSION 1437
-- ------------------------------------------
@ -2355,6 +2355,7 @@ CREATE VIEW `account-view` AS SELECT
`contact`.`url` AS `url`,
`contact`.`nurl` AS `nurl`,
`contact`.`uri-id` AS `uri-id`,
`item-uri`.`guid` AS `guid`,
`contact`.`addr` AS `addr`,
`contact`.`alias` AS `alias`,
`contact`.`name` AS `name`,
@ -2424,6 +2425,7 @@ CREATE VIEW `account-view` AS SELECT
`apcontact`.`followers_count` AS `ap-followers_count`,
`apcontact`.`statuses_count` AS `ap-statuses_count`
FROM `contact`
LEFT JOIN `item-uri` ON `item-uri`.`id` = `contact`.`uri-id`
LEFT JOIN `apcontact` ON `apcontact`.`uri-id` = `contact`.`uri-id`
LEFT JOIN `fcontact` ON `fcontact`.`uri-id` = contact.`uri-id`
WHERE `contact`.`uid` = 0;
@ -2439,6 +2441,7 @@ CREATE VIEW `account-user-view` AS SELECT
`contact`.`url` AS `url`,
`contact`.`nurl` AS `nurl`,
`contact`.`uri-id` AS `uri-id`,
`item-uri`.`guid` AS `guid`,
`contact`.`addr` AS `addr`,
`contact`.`alias` AS `alias`,
`contact`.`name` AS `name`,
@ -2522,6 +2525,7 @@ CREATE VIEW `account-user-view` AS SELECT
`apcontact`.`statuses_count` AS `ap-statuses_count`
FROM `contact` AS `ucontact`
INNER JOIN `contact` ON `contact`.`uri-id` = `ucontact`.`uri-id` AND `contact`.`uid` = 0
LEFT JOIN `item-uri` ON `item-uri`.`id` = `ucontact`.`uri-id`
LEFT JOIN `apcontact` ON `apcontact`.`uri-id` = `ucontact`.`uri-id`
LEFT JOIN `fcontact` ON `fcontact`.`uri-id` = `ucontact`.`uri-id` AND `fcontact`.`network` = 'dspr';

View File

@ -1726,15 +1726,18 @@ class Contact
* @param string $updated Contact update date
* @return string avatar link
*/
public static function getAvatarUrlForId(int $cid, string $size = '', string $updated = ''):string
public static function getAvatarUrlForId(int $cid, string $size = '', string $updated = '', string $guid = ''):string
{
// We have to fetch the "updated" variable when it wasn't provided
// The parameter can be provided to improve performance
if (empty($updated)) {
$contact = self::getById($cid, ['updated']);
$updated = $contact['updated'] ?? '';
if (empty($updated) || empty($guid)) {
$account = DBA::selectFirst('account-user-view', ['updated', 'guid'], ['id' => $cid]);
$updated = $account['updated'] ?? '';
$guid = $account['guid'] ?? '';
}
$guid = urlencode($guid);
$url = DI::baseUrl() . '/photo/contact/';
switch ($size) {
case Proxy::SIZE_MICRO:
@ -1753,7 +1756,7 @@ class Contact
$url .= Proxy::PIXEL_LARGE . '/';
break;
}
return $url . $cid . ($updated ? '?ts=' . strtotime($updated) : '');
return $url . ($guid ?: $cid) . ($updated ? '?ts=' . strtotime($updated) : '');
}
/**
@ -1780,15 +1783,18 @@ class Contact
* @param string $updated Contact update date
* @return string header link
*/
public static function getHeaderUrlForId(int $cid, string $size = '', string $updated = ''):string
public static function getHeaderUrlForId(int $cid, string $size = '', string $updated = '', string $guid = ''):string
{
// We have to fetch the "updated" variable when it wasn't provided
// The parameter can be provided to improve performance
if (empty($updated)) {
$contact = self::getById($cid, ['updated']);
$updated = $contact['updated'] ?? '';
if (empty($updated) || empty($guid)) {
$account = DBA::selectFirst('account-user-view', ['updated', 'guid'], ['id' => $cid]);
$updated = $account['updated'] ?? '';
$guid = $account['guid'] ?? '';
}
$guid = urlencode($guid);
$url = DI::baseUrl() . '/photo/header/';
switch ($size) {
case Proxy::SIZE_MICRO:
@ -1808,7 +1814,7 @@ class Contact
break;
}
return $url . $cid . ($updated ? '?ts=' . strtotime($updated) : '');
return $url . ($guid ?: $cid) . ($updated ? '?ts=' . strtotime($updated) : '');
}
/**
@ -2184,7 +2190,7 @@ class Contact
}
$update = false;
$guid = $ret['guid'] ?? '';
$guid = ($ret['guid'] ?? '') ?: Item::guidFromUri($ret['url'], parse_url($ret['url'], PHP_URL_HOST));
// make sure to not overwrite existing values with blank entries except some technical fields
$keep = ['batch', 'notify', 'poll', 'request', 'confirm', 'poco', 'baseurl'];
@ -2212,6 +2218,8 @@ class Contact
self::updateAvatar($id, $ret['photo'], $update);
}
$uriid = ItemURI::insert(['uri' => $ret['url'], 'guid' => $guid]);
if (!$update) {
self::updateContact($id, $uid, $contact['url'], $ret['url'], ['failed' => false, 'last-update' => $updated, 'success_update' => $updated]);
@ -2230,12 +2238,7 @@ class Contact
return true;
}
if (empty($guid)) {
$ret['uri-id'] = ItemURI::getIdByURI($ret['url']);
} else {
$ret['uri-id'] = ItemURI::insert(['uri' => $ret['url'], 'guid' => $guid]);
}
$ret['uri-id'] = $uriid;
$ret['nurl'] = Strings::normaliseLink($ret['url']);
$ret['updated'] = $updated;
$ret['failed'] = false;

View File

@ -82,6 +82,21 @@ class Photo extends BaseModule
$square_resize = !in_array($parameters['type'], ['media', 'preview']);
}
if (!empty($parameters['guid'])) {
$guid = $parameters['guid'];
$account = DBA::selectFirst('account-user-view', ['id'], ['guid' => $guid], ['order' => ['uid' => true]]);
if (empty($account)) {
throw new HTTPException\NotFoundException();
}
$id = $account['id'];
}
// Contact Id Fallback, to remove after version 2021.12
if (isset($parameters['contact_id'])) {
$id = intval($parameters['contact_id']);
}
if (!empty($parameters['nickname_ext'])) {
$nickname = pathinfo($parameters['nickname_ext'], PATHINFO_FILENAME);
$user = User::getByNickname($nickname, ['uid']);
@ -89,20 +104,25 @@ class Photo extends BaseModule
throw new HTTPException\NotFoundException();
}
$uid = $user['uid'];
$id = $user['uid'];
}
// User Id Fallback, to remove after version 2021.12
if (!empty($parameters['uid_ext'])) {
$uid = intval(pathinfo($parameters['uid_ext'], PATHINFO_FILENAME));
$id = intval(pathinfo($parameters['uid_ext'], PATHINFO_FILENAME));
}
// Please refactor this for the love of everything that's good
if (isset($parameters['id'])) {
$uid = $parameters['id'];
$id = $parameters['id'];
}
$photo = self::getAvatar($uid, $parameters['type'], $customsize ?: Proxy::PIXEL_SMALL);
if (empty($id)) {
Logger::notice('No picture id was detected', ['parameters' => $parameters, 'query' => DI::args()->getQueryString()]);
throw new HTTPException\NotFoundException(DI::l10n()->t('The Photo is not available.'));
}
$photo = self::getPhotoByid($id, $parameters['type'], $customsize ?: Proxy::PIXEL_SMALL);
} else {
$photoid = pathinfo($parameters['name'], PATHINFO_FILENAME);
$scale = 0;
@ -202,11 +222,11 @@ class Photo extends BaseModule
exit();
}
private static function getAvatar(int $uid, $type, $customsize)
private static function getPhotoByid(int $id, $type, $customsize)
{
switch($type) {
case "preview":
$media = DBA::selectFirst('post-media', ['preview', 'url', 'mimetype', 'type', 'uri-id'], ['id' => $uid]);
$media = DBA::selectFirst('post-media', ['preview', 'url', 'mimetype', 'type', 'uri-id'], ['id' => $id]);
if (empty($media)) {
return false;
}
@ -223,10 +243,10 @@ class Photo extends BaseModule
if (Network::isLocalLink($url) && preg_match('|.*?/photo/(.*[a-fA-F0-9])\-(.*[0-9])\..*[\w]|', $url, $matches)) {
return MPhoto::getPhoto($matches[1], $matches[2]);
}
return MPhoto::createPhotoForExternalResource($url, (int)local_user(), $media['mimetype']);
case "media":
$media = DBA::selectFirst('post-media', ['url', 'mimetype', 'uri-id'], ['id' => $uid, 'type' => Post\Media::IMAGE]);
$media = DBA::selectFirst('post-media', ['url', 'mimetype', 'uri-id'], ['id' => $id, 'type' => Post\Media::IMAGE]);
if (empty($media)) {
return false;
}
@ -237,14 +257,14 @@ class Photo extends BaseModule
return MPhoto::createPhotoForExternalResource($media['url'], (int)local_user(), $media['mimetype']);
case "link":
$link = DBA::selectFirst('post-link', ['url', 'mimetype'], ['id' => $uid]);
$link = DBA::selectFirst('post-link', ['url', 'mimetype'], ['id' => $id]);
if (empty($link)) {
return false;
}
return MPhoto::createPhotoForExternalResource($link['url'], (int)local_user(), $link['mimetype']);
case "contact":
$contact = Contact::getById($uid, ['uid', 'url', 'avatar', 'photo', 'xmpp', 'addr']);
$contact = Contact::getById($id, ['uid', 'url', 'avatar', 'photo', 'xmpp', 'addr']);
if (empty($contact)) {
return false;
}
@ -273,7 +293,7 @@ class Photo extends BaseModule
}
return MPhoto::createPhotoForExternalResource($url);
case "header":
$contact = Contact::getById($uid, ['uid', 'url', 'header']);
$contact = Contact::getById($id, ['uid', 'url', 'header']);
if (empty($contact)) {
return false;
}
@ -298,9 +318,9 @@ class Photo extends BaseModule
$scale = 5;
}
$photo = MPhoto::selectFirst([], ["scale" => $scale, "uid" => $uid, "profile" => 1]);
$photo = MPhoto::selectFirst([], ["scale" => $scale, "uid" => $id, "profile" => 1]);
if (empty($photo)) {
$contact = DBA::selectFirst('contact', [], ['uid' => $uid, 'self' => true]) ?: [];
$contact = DBA::selectFirst('contact', [], ['uid' => $id, 'self' => true]) ?: [];
switch($type) {
case "profile":

View File

@ -55,7 +55,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1436);
define('DB_UPDATE_VERSION', 1437);
}
return [
@ -98,8 +98,7 @@ return [
"comment" => "The local users",
"fields" => [
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "sequential ID"],
"parent-uid" => ["type" => "mediumint unsigned", "foreign" => ["user" => "uid"],
"comment" => "The parent user that has full control about this user"],
"parent-uid" => ["type" => "mediumint unsigned", "foreign" => ["user" => "uid"], "comment" => "The parent user that has full control about this user"],
"guid" => ["type" => "varchar(64)", "not null" => "1", "default" => "", "comment" => "A unique identifier for this user"],
"username" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Name that this user is known by"],
"password" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "encrypted password"],

View File

@ -825,6 +825,7 @@
"url" => ["contact", "url"],
"nurl" => ["contact", "nurl"],
"uri-id" => ["contact", "uri-id"],
"guid" => ["item-uri", "guid"],
"addr" => ["contact", "addr"],
"alias" => ["contact", "alias"],
"name" => ["contact", "name"],
@ -895,6 +896,7 @@
"ap-statuses_count" => ["apcontact", "statuses_count"],
],
"query" => "FROM `contact`
LEFT JOIN `item-uri` ON `item-uri`.`id` = `contact`.`uri-id`
LEFT JOIN `apcontact` ON `apcontact`.`uri-id` = `contact`.`uri-id`
LEFT JOIN `fcontact` ON `fcontact`.`uri-id` = contact.`uri-id`
WHERE `contact`.`uid` = 0"
@ -907,6 +909,7 @@
"url" => ["contact", "url"],
"nurl" => ["contact", "nurl"],
"uri-id" => ["contact", "uri-id"],
"guid" => ["item-uri", "guid"],
"addr" => ["contact", "addr"],
"alias" => ["contact", "alias"],
"name" => ["contact", "name"],
@ -991,6 +994,7 @@
],
"query" => "FROM `contact` AS `ucontact`
INNER JOIN `contact` ON `contact`.`uri-id` = `ucontact`.`uri-id` AND `contact`.`uid` = 0
LEFT JOIN `item-uri` ON `item-uri`.`id` = `ucontact`.`uri-id`
LEFT JOIN `apcontact` ON `apcontact`.`uri-id` = `ucontact`.`uri-id`
LEFT JOIN `fcontact` ON `fcontact`.`uri-id` = `ucontact`.`uri-id` AND `fcontact`.`network` = 'dspr'"
],

View File

@ -373,15 +373,18 @@ return [
'/permission/tooltip/{type}/{id:\d+}' => [Module\PermissionTooltip::class, [R::GET]],
'/photo' => [
'/{name}' => [Module\Photo::class, [R::GET]],
'/{type}/{id:\d+}' => [Module\Photo::class, [R::GET]],
'/{name}' => [Module\Photo::class, [R::GET]],
'/{type}/{id:\d+}' => [Module\Photo::class, [R::GET]],
// User Id Fallback, to remove after version 2021.12
'/{type}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]],
'/{type}/{nickname_ext}' => [Module\Photo::class, [R::GET]],
'/{type}/{customsize}/{id:\d+}' => [Module\Photo::class, [R::GET]],
'/{type}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]],
'/{type}/{nickname_ext}' => [Module\Photo::class, [R::GET]],
// Contact Id Fallback, to remove after version 2021.12
'/{type:contact|header}/{customsize:\d+}/{contact_id:\d+}' => [Module\Photo::class, [R::GET]],
'/{type:contact|header}/{customsize:\d+}/{guid}' => [Module\Photo::class, [R::GET]],
'/{type}/{customsize:\d+}/{id:\d+}' => [Module\Photo::class, [R::GET]],
// User Id Fallback, to remove after version 2021.12
'/{type}/{customsize}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]],
'/{type}/{customsize}/{nickname_ext}' => [Module\Photo::class, [R::GET]],
'/{type}/{customsize:\d+}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]],
'/{type}/{customsize:\d+}/{nickname_ext}' => [Module\Photo::class, [R::GET]],
],
'/pretheme' => [Module\ThemeDetails::class, [R::GET]],

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 2021.12-dev\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-03 13:45-0400\n"
"POT-Creation-Date: 2021-10-04 06:26+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -39,7 +39,7 @@ msgstr ""
#: include/api.php:4422 mod/photos.php:89 mod/photos.php:198 mod/photos.php:617
#: mod/photos.php:1028 mod/photos.php:1045 mod/photos.php:1594
#: src/Model/User.php:1160 src/Model/User.php:1168 src/Model/User.php:1176
#: src/Model/User.php:1164 src/Model/User.php:1172 src/Model/User.php:1180
#: src/Module/Settings/Profile/Photo/Crop.php:101
#: src/Module/Settings/Profile/Photo/Crop.php:117
#: src/Module/Settings/Profile/Photo/Crop.php:133
@ -1356,15 +1356,15 @@ msgstr ""
msgid "View Album"
msgstr ""
#: mod/ping.php:286
#: mod/ping.php:275
msgid "{0} wants to be your friend"
msgstr ""
#: mod/ping.php:303
#: mod/ping.php:292
msgid "{0} requested registration"
msgstr ""
#: mod/ping.php:316
#: mod/ping.php:305
#, php-format
msgid "{0} and %d others requested registration"
msgstr ""
@ -4324,63 +4324,63 @@ msgstr ""
msgid "Forum"
msgstr ""
#: src/Model/Contact.php:2363
#: src/Model/Contact.php:2370
msgid "Disallowed profile URL."
msgstr ""
#: src/Model/Contact.php:2368 src/Module/Friendica.php:81
#: src/Model/Contact.php:2375 src/Module/Friendica.php:81
msgid "Blocked domain"
msgstr ""
#: src/Model/Contact.php:2373
#: src/Model/Contact.php:2380
msgid "Connect URL missing."
msgstr ""
#: src/Model/Contact.php:2382
#: src/Model/Contact.php:2389
msgid ""
"The contact could not be added. Please check the relevant network "
"credentials in your Settings -> Social Networks page."
msgstr ""
#: src/Model/Contact.php:2419
#: src/Model/Contact.php:2426
msgid "The profile address specified does not provide adequate information."
msgstr ""
#: src/Model/Contact.php:2421
#: src/Model/Contact.php:2428
msgid "No compatible communication protocols or feeds were discovered."
msgstr ""
#: src/Model/Contact.php:2424
#: src/Model/Contact.php:2431
msgid "An author or name was not found."
msgstr ""
#: src/Model/Contact.php:2427
#: src/Model/Contact.php:2434
msgid "No browser URL could be matched to this address."
msgstr ""
#: src/Model/Contact.php:2430
#: src/Model/Contact.php:2437
msgid ""
"Unable to match @-style Identity Address with a known protocol or email "
"contact."
msgstr ""
#: src/Model/Contact.php:2431
#: src/Model/Contact.php:2438
msgid "Use mailto: in front of address to force email check."
msgstr ""
#: src/Model/Contact.php:2437
#: src/Model/Contact.php:2444
msgid ""
"The profile address specified belongs to a network which has been disabled "
"on this site."
msgstr ""
#: src/Model/Contact.php:2442
#: src/Model/Contact.php:2449
msgid ""
"Limited profile. This person will be unable to receive direct/personal "
"notifications from you."
msgstr ""
#: src/Model/Contact.php:2501
#: src/Model/Contact.php:2508
msgid "Unable to retrieve contact information."
msgstr ""
@ -4605,7 +4605,7 @@ msgstr ""
msgid "Enter a valid existing folder"
msgstr ""
#: src/Model/User.php:208 src/Model/User.php:1046
#: src/Model/User.php:208 src/Model/User.php:1050
msgid "SERIOUS ERROR: Generation of security keys failed."
msgstr ""
@ -4636,107 +4636,107 @@ msgid ""
"The password can't contain accentuated letters, white spaces or colons (:)"
msgstr ""
#: src/Model/User.php:926
#: src/Model/User.php:930
msgid "Passwords do not match. Password unchanged."
msgstr ""
#: src/Model/User.php:933
#: src/Model/User.php:937
msgid "An invitation is required."
msgstr ""
#: src/Model/User.php:937
#: src/Model/User.php:941
msgid "Invitation could not be verified."
msgstr ""
#: src/Model/User.php:945
#: src/Model/User.php:949
msgid "Invalid OpenID url"
msgstr ""
#: src/Model/User.php:958 src/Security/Authentication.php:223
#: src/Model/User.php:962 src/Security/Authentication.php:223
msgid ""
"We encountered a problem while logging in with the OpenID you provided. "
"Please check the correct spelling of the ID."
msgstr ""
#: src/Model/User.php:958 src/Security/Authentication.php:223
#: src/Model/User.php:962 src/Security/Authentication.php:223
msgid "The error message was:"
msgstr ""
#: src/Model/User.php:964
#: src/Model/User.php:968
msgid "Please enter the required information."
msgstr ""
#: src/Model/User.php:978
#: src/Model/User.php:982
#, php-format
msgid ""
"system.username_min_length (%s) and system.username_max_length (%s) are "
"excluding each other, swapping values."
msgstr ""
#: src/Model/User.php:985
#: src/Model/User.php:989
#, php-format
msgid "Username should be at least %s character."
msgid_plural "Username should be at least %s characters."
msgstr[0] ""
msgstr[1] ""
#: src/Model/User.php:989
#: src/Model/User.php:993
#, php-format
msgid "Username should be at most %s character."
msgid_plural "Username should be at most %s characters."
msgstr[0] ""
msgstr[1] ""
#: src/Model/User.php:997
#: src/Model/User.php:1001
msgid "That doesn't appear to be your full (First Last) name."
msgstr ""
#: src/Model/User.php:1002
#: src/Model/User.php:1006
msgid "Your email domain is not among those allowed on this site."
msgstr ""
#: src/Model/User.php:1006
#: src/Model/User.php:1010
msgid "Not a valid email address."
msgstr ""
#: src/Model/User.php:1009
#: src/Model/User.php:1013
msgid "The nickname was blocked from registration by the nodes admin."
msgstr ""
#: src/Model/User.php:1013 src/Model/User.php:1021
#: src/Model/User.php:1017 src/Model/User.php:1025
msgid "Cannot use that email."
msgstr ""
#: src/Model/User.php:1028
#: src/Model/User.php:1032
msgid "Your nickname can only contain a-z, 0-9 and _."
msgstr ""
#: src/Model/User.php:1036 src/Model/User.php:1093
#: src/Model/User.php:1040 src/Model/User.php:1097
msgid "Nickname is already registered. Please choose another."
msgstr ""
#: src/Model/User.php:1080 src/Model/User.php:1084
#: src/Model/User.php:1084 src/Model/User.php:1088
msgid "An error occurred during registration. Please try again."
msgstr ""
#: src/Model/User.php:1107
#: src/Model/User.php:1111
msgid "An error occurred creating your default profile. Please try again."
msgstr ""
#: src/Model/User.php:1114
#: src/Model/User.php:1118
msgid "An error occurred creating your self contact. Please try again."
msgstr ""
#: src/Model/User.php:1119
#: src/Model/User.php:1123
msgid "Friends"
msgstr ""
#: src/Model/User.php:1123
#: src/Model/User.php:1127
msgid ""
"An error occurred creating your default contact group. Please try again."
msgstr ""
#: src/Model/User.php:1352
#: src/Model/User.php:1356
#, php-format
msgid ""
"\n"
@ -4744,7 +4744,7 @@ msgid ""
"\t\t\tthe administrator of %2$s has set up an account for you."
msgstr ""
#: src/Model/User.php:1355
#: src/Model/User.php:1359
#, php-format
msgid ""
"\n"
@ -4781,12 +4781,12 @@ msgid ""
"\t\tThank you and welcome to %4$s."
msgstr ""
#: src/Model/User.php:1388 src/Model/User.php:1495
#: src/Model/User.php:1392 src/Model/User.php:1499
#, php-format
msgid "Registration details for %s"
msgstr ""
#: src/Model/User.php:1408
#: src/Model/User.php:1412
#, php-format
msgid ""
"\n"
@ -4802,12 +4802,12 @@ msgid ""
"\t\t"
msgstr ""
#: src/Model/User.php:1427
#: src/Model/User.php:1431
#, php-format
msgid "Registration at %s"
msgstr ""
#: src/Model/User.php:1451
#: src/Model/User.php:1455
#, php-format
msgid ""
"\n"
@ -4816,7 +4816,7 @@ msgid ""
"\t\t\t"
msgstr ""
#: src/Model/User.php:1459
#: src/Model/User.php:1463
#, php-format
msgid ""
"\n"
@ -8666,17 +8666,21 @@ msgstr ""
msgid "Visible to:"
msgstr ""
#: src/Module/Photo.php:115
#: src/Module/Photo.php:117
msgid "The Photo is not available."
msgstr ""
#: src/Module/Photo.php:130
#, php-format
msgid "The Photo with id %s is not available."
msgstr ""
#: src/Module/Photo.php:148
#: src/Module/Photo.php:163
#, php-format
msgid "Invalid external resource with url %s."
msgstr ""
#: src/Module/Photo.php:150
#: src/Module/Photo.php:165
#, php-format
msgid "Invalid photo with id %s."
msgstr ""
@ -8739,19 +8743,19 @@ msgstr ""
#: src/Module/Profile/Profile.php:326 src/Module/Profile/Profile.php:329
#: src/Module/Profile/Status.php:65 src/Module/Profile/Status.php:68
#: src/Protocol/Feed.php:951 src/Protocol/OStatus.php:1259
#: src/Protocol/Feed.php:953 src/Protocol/OStatus.php:1259
#, php-format
msgid "%s's timeline"
msgstr ""
#: src/Module/Profile/Profile.php:327 src/Module/Profile/Status.php:66
#: src/Protocol/Feed.php:955 src/Protocol/OStatus.php:1263
#: src/Protocol/Feed.php:957 src/Protocol/OStatus.php:1263
#, php-format
msgid "%s's posts"
msgstr ""
#: src/Module/Profile/Profile.php:328 src/Module/Profile/Status.php:67
#: src/Protocol/Feed.php:958 src/Protocol/OStatus.php:1266
#: src/Protocol/Feed.php:960 src/Protocol/OStatus.php:1266
#, php-format
msgid "%s's comments"
msgstr ""