Compare commits

..

No commits in common. "aca48e726e4cecad9fe073fdcd7e24f574d4c127" and "c6a77de234d30e84c974c6df97818eab94a04dee" have entirely different histories.

5 changed files with 4 additions and 13 deletions

2
.gitignore vendored
View file

@ -14,5 +14,3 @@ themepacks/*
!themepacks/midnight
storage/*
!storage/.gitkeep
.idea

View file

@ -283,14 +283,6 @@ class Photo extends Media
return [$x, $y];
}
function getPageURL(): string
{
if($this->isAnonymous())
return "/photos/" . base_convert((string) $this->getId(), 10, 32);
return "/photo" . $this->getPrettyId();
}
function getAlbum(): ?Album
{
return (new Albums)->getAlbumByPhotoId($this);

View file

@ -1,6 +1,7 @@
{if $attachment instanceof \openvk\Web\Models\Entities\Photo}
{if !$attachment->isDeleted()}
<a href="{$attachment->getPageUrl()}">
{var $link = "/photo" . ($attachment->isAnonymous() ? ("s/" . base_convert((string) $attachment->getId(), 10, 32)) : $attachment->getPrettyId())}
<a href="{$link}">
<img class="media" src="{$attachment->getURLBySizeId('normal')}" alt="{$attachment->getDescription()}" />
</a>
{else}

View file

@ -1,4 +1,4 @@
{var $user = $notification->getModel(0)}
{var $post = $notification->getModel(1)}
{_nt_you_were_mentioned_u} <a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a> {$notification->getDateTime()} <a href="/photo{$post->getPageURL()}"><b>{_nt_mention_in_photo}</b></a>: "{$notification->getData()}"
{_nt_you_were_mentioned_u} <a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a> {$notification->getDateTime()} <a href="/photo{$post->getURL()}"><b>{_nt_mention_in_photo}</b></a>: "{$notification->getData()}"

View file

@ -1,5 +1,5 @@
"__locale" = "en_US.UTF-8;Eng";
"__transNames" = "[\P{script=Han}]; Russian-Latin/BGN; Any-Latin";
"__transNames" = "Russian-Latin/BGN; Any-Latin";
/* Check for https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html */