1
1
Fork 0

Remove /display/{nick}/{id} URL structure publishing

- Remove support for defunct Friendica F-Droid app
This commit is contained in:
Hypolite Petovan 2019-04-29 00:40:58 -04:00
commit e6bf97777f
7 changed files with 13 additions and 126 deletions

View file

@ -313,14 +313,7 @@ function ping_init(App $a)
usort($notifs, $sort_function);
if (DBA::isResult($notifs)) {
// Are the nofications called from the regular process or via the friendica app?
$regularnotifications = (!empty($_GET['uid']) && !empty($_GET['_']));
foreach ($notifs as $notif) {
if ($a->isFriendicaApp() || !$regularnotifications) {
$notif['message'] = str_replace("{0}", $notif['name'], $notif['message']);
}
$contact = Contact::getDetailsByURL($notif['url']);
if (isset($contact['micro'])) {
$notif['photo'] = ProxyUtils::proxifyUrl($contact['micro'], false, ProxyUtils::SIZE_MICRO);