Commit graph

814 commits

Author SHA1 Message Date
mrilyew
1d1eae3da2 feat: count of comments on microblog 2025-06-01 17:04:44 +03:00
mrilyew
3c6ce6e22f fix: add margin at post page 2025-06-01 17:04:44 +03:00
mrilyew
1552483dbe fix: 500 on followers page 2025-06-01 17:04:44 +03:00
mrilyew
f542651a56 fix: ajax on tickets 2025-06-01 17:04:44 +03:00
mrilyew
a16734648c feat: skip theme styles 2025-06-01 17:04:44 +03:00
mrilyew
fa7681edb8 fix: wrong i18n xhtml text 2025-06-01 17:04:44 +03:00
mrilyew
7e22964c2e fix: wide avatars at tips 2025-06-01 17:04:44 +03:00
mrilyew
a64b903f15 fix: don't show age of dead 2025-06-01 17:04:44 +03:00
mrilyew
401b417d67 fix: typo in privacy 2025-06-01 17:04:44 +03:00
mrilyew
ba8b12f81d feat: add link to audiostatus 2025-06-01 17:04:44 +03:00
mrilyew
d9cd394547 feat: auto set "from group" 2025-06-01 17:04:44 +03:00
mrilyew
58b2d8ece5 fix: move all apps to search 2025-06-01 17:04:44 +03:00
mrilyew
1cacf6a8b5 feat(docs): ux changes 2025-06-01 17:04:44 +03:00
mrilyew
6a882aeeb4 feat(wall): remove hidePanel() 2025-06-01 17:04:44 +03:00
Ry0
ecdbc2ef1c
feat(feed, reports): Make Feed Great Again (#1303) 2025-06-01 16:36:17 +03:00
Slava Petrov
14a07450d3
feat(admin): ability to hide user's posts from global feed (#1291) 2025-06-01 16:30:25 +03:00
Кирилл
246dd4ab91
fix(api): handle Apps API for OAuth compatibility (#1313) 2025-06-01 16:28:16 +03:00
55e0aa6a39
Revert "fix(thumbnails): use hash instead of real id (#1234)" (#1296)
This reverts commit a5d80b8f9b.
2025-05-18 15:02:26 +00:00
mrilyew
a5d80b8f9b
fix(thumbnails): use hash instead of real id (#1234)
Заменяется реальный id в ссылке превью на хэш, чтобы нельзя было делать
перебор или просмотр рандомных картинок. В данный момент не особо
критично (потому что можно перебирать посты), но при появлении вложений
в диалогах будет

Co-authored-by: Alexander Minkin <weryskok@gmail.com>
2025-05-18 17:53:39 +03:00
Jillian Österreich
c25fd84c11
feat(support): add more telegram posts (#1282)
Для упрощения слежки над тикетами были добавлены дополнительные посты
при добавлении комментария и изменении статуса тикета, в случае если
существует отдельный чат под это в Телеграме.

---------

Co-authored-by: veselcraft <veselcraft@icloud.com>
2025-05-10 16:55:54 +03:00
mrilyew
1d06a41b39
fix: resolve issues related to API listens field, anonymous notifications, and UX bugs (#1279)
- Исправлено #1278 по идее
- Добавил поле listens в апи (показывается только для своих треков)
- Исправлен старинный баг, связанный с анонимкой (в уведомлении виден
реальный автор)
- Было неправильно добавлять ссылку на "избранное" в навигационное меню,
поэтому она перенесена в настройки на довольно логичное место
- Удалены некоторые импульсивности в коде и некоторые баги ux

---------

Co-authored-by: Alexander Minkin <weryskok@gmail.com>
2025-05-03 16:53:14 +03:00
Vladimir Barinov
b7fc23bb52
fix(pda), chore(locale): adapt for pda (#1276) 2025-04-19 17:37:59 +03:00
mrilyew
3e0c508ca1
fix(music, user, club): several patches (#1267)
- Исправлено 500 в плейлистах
- Заметил, что вместо причины бана отображается "подозрительная
активность", вернул показ оригинала сообщения

![1](https://github.com/user-attachments/assets/9a804076-8baf-4ab6-9294-82771480bcc0)
- Порядок подписчиков в группе идёт теперь от первых подписавшихся (об
этом вроде #1260)
- Удалены лишние методы deleteComment, поскольку есть
wall.deleteComment, временно~ урезано поле "attachments" в некоторых
методах. У фото теперь есть orig_photo
- Исправлена меняющаяся на один пиксель кнопка "воспроизвести" в плеере
в chrome и #1256,
2025-04-04 17:48:25 +03:00
mrilyew
be65f81a4a
fix(audio, favorites): big patch #1259
# Аудио
- Добавлена вкладка в аудио "загруженное" которую я забыл добавить в
октябре 2023. Она показывает загруженные аудио в порядке возрастания.
Есть так же идеи для вкладок "недавно прослушанное" и "ваши друзья
слушают" (последняя добавит иммерсивности, или как это называется,
персональности на сайт, хотя по факту она просто соберёт id всех друзей
и выдаст их недавние добавления в коллекцию), но тогда будет
нагромождение вкладок и придётся какое то сворачивание добавлять.
- Если аудио больше 10 и ты на странице аудио, то показывается мелкая
кнопка в правом нижнем углу которая развернёт счётчик и пагинатор.
- Если аудио обрабатывается (processed как я назвал в css) то появится
кнопка "всё равно хочу воспроизвести".
- При переключении трека меняется заголовок вкладки
- Если ты вызвал контекстное меню но оно ушло за экран, то оно будет
повыше.

# Уязвимости
- Убрана уязвимость в audio api что можно было посмотреть айди владельца
удалённого аудио. В целом непонятно использование id в тексте ошибки,
поскольку он не должен изменятся и быть обобщённым, по типу access to
audio denied. Но да ладно, коду три года всё таки.
- Удалённый контент заменяется "[deleted]" в /fave. Я бы на самом деле
не добавлял это, но меня испугал последний абзац fixed #1258 поэтому
добавил.
2025-03-28 17:04:13 +03:00
Vladimir Barinov
a12c77083b
fix(links, away) (fixes #1253) 2025-03-16 17:57:21 +03:00
mrilyew
b92bf7f41a
feat(fave) (#1240)
* add liked content

* fix order

* linter

* linter errors fix

* задушнил

---------

Co-authored-by: veselcraft <veselcraft@icloud.com>
2025-03-09 16:42:19 +03:00
def76226b7
feat(core): add phpstan for static analysis (#1223)
* feat: add phpstan for static analysis

* ci(actions): add phpstan action

* ci(actions): do analysing inside docker container

* fix(FetchToncoinTransactions): add var declaration

* fix(ServiceAPI/Wall): add var declaration

* fix(bootstrap): remove case-insensitive false vars

* fix(VKAPI/Handlers/Board): change parameters order

* fix(VKAPIRequestHandler): set fail's return type as never

* fix(VKAPI/Handlers/Groups): add array declaration

* fix(VKAPI/Handlers/Newsfeed): add return_banned declaration

* fix(VKAPI/Handlers/Notes): move $nodez declaration up

* fix(phpstan): most of the things and stupid lines of code

* fix(lint)

* fix(phpstan): less errors

* fix(lint): again. cuz i forgot about it

* fix(stan): all errors are gone now =3

---------

Co-authored-by: veselcraft <veselcraft@icloud.com>
2025-03-09 16:03:33 +03:00
cb14085cd4
style: fixes (#1237) 2025-02-22 23:46:02 +03:00
n1rwana
ee0dd8c749
fix(away.php): fix link checking (#949)
* Фикс проверки заблокированных ссылок

* fix(away.php): syntax

---------

Co-authored-by: mrilyew <99399973+mrilyew@users.noreply.github.com>
Co-authored-by: veselcraft <veselcraft@icloud.com>
2025-02-16 16:47:48 +03:00
6ec54a379d
feat: add linting of code (#1220)
* feat(lint): add php-cs-fixer for linting

Removing previous CODE_STYLE as it was not enforced anyway and using PER-CS 2.0.

This is not the reformatting commit.

* style: format code according to PER-CS 2.0 with php-cs-fixer

* ci(actions): add lint action

Resolves #1132.
2025-01-31 18:20:13 +03:00
celestora
4166481a75
fix(im): escape html in sent messages too (#1218)
fixes #1215
2025-01-30 00:13:20 +03:00
mrilyew
b713c964a3 feat(docs): add unavailable book preview (bc pos-
-sible xss). uncomment if sure
2025-01-27 21:12:09 +03:00
mrilyew
0fb18e34f5 feat(docs): corct aud/img preview, hide report btn
when doc is yours.
2025-01-27 14:57:25 +03:00
Jillian Österreich
8f17c95bce
fix: remove check that caused layout to move away 2025-01-23 13:23:58 +07:00
veselcraft
dbf91e2671
fix(email): layout goes brrrrrr 2025-01-22 17:41:37 +03:00
veselcraft
3afb44fd89
fix(wall): 500 error xd 2025-01-22 17:19:57 +03:00
veselcraft
0a3231e8ef
fix(wall): it's now forbidden to look into deleted user's wall 2025-01-22 17:10:32 +03:00
mrilyew
2d83003b6c
feat(documents) (#1205)
* create document entity

* add upload, previews, most of api methods

* ui start

* better ui, search, uploading (icons by myslivets)

Co-Authored-By: Daniel <60743585+myslivets@users.noreply.github.com>

* add editing functions

* add viewer and gallery

* preparations for picker

* things

* add counter on tab

* add tags

* fix gif processing

* fix png processing

* picker

* addd search

* add fast uploader

* openvk midn. support, change midn.photomodal color

* fix low register format chekc

* add gif play on click

* unauthorized limitations

---------

Co-authored-by: Daniel <60743585+myslivets@users.noreply.github.com>
2025-01-22 17:05:28 +03:00
mrilyew
bbcb94515d fix: fix 500 on unauth 2025-01-07 11:29:05 +03:00
mrilyew
f66dd0c7bd feat(ajax): add ability to turn off ajax routing
there is no logic in this checkbox place but i didnt knew where to put it.
2025-01-05 19:19:50 +03:00
mrilyew
3f2fbd94f0 fix(search bar): fix brick showing 2025-01-05 18:40:01 +03:00
mrilyew
46b12a7c8e fix: pre-new year bugfix
fixes #1204, fixes #1199
2024-12-31 16:20:31 +03:00
SachaTending
977da1f9c3
feat(token authorization): add "secret" field 2024-12-31 16:15:42 +03:00
mrilyew
0aecc299cf
feat(profile): fav games & custom fields (#1193)
* add fav games

* add additional fields

* add gui 4 dis

* add maxlength
2024-12-20 17:34:29 +03:00
veselcraft
4c9c650cff
feat(global): news on left menu
Co-authored-by: Slava Petrov <55963296+saursvepur@users.noreply.github.com>
2024-12-20 17:17:40 +03:00
mrilyew
4541ce1afe fix(profiles): fix #1186 2024-12-14 15:19:09 +03:00
mrilyew
959a6d6ac3 feat(geo): add ability to change point name and...
...fix federal cities name and territorial integrity
2024-12-13 20:02:49 +03:00
n1rwana
a714a0aa16
feat(wall): ability to add geopoint to post (#945)
* Гео-метки

* Update Post.xml

* Wall: geotag translation

* Wall: design + sql fix

* Карта ближайших постов

* Update al_wall.js

* VKAPI: Geo support (not tested idk)

* Update WallPresenter.php

* Better geo points

* Редактирование названия геоточки через интерфейс при создании

* SQL and geopoint name fixes

* fix js

* rewrite a lot

---------

Co-authored-by: veselcraft <veselcraft@icloud.com>
Co-authored-by: mrilyew <99399973+mrilyew@users.noreply.github.com>
2024-12-13 17:53:36 +03:00
mrilyew
bec9079e36
feat(privacy): blacklist v2 (#1183)
* Перенос ветки blacklist (#900)

* Blacklist

* Config

* upd

* Added restrictions in the users.get method

* ok

* Update en.strings

* ok 2.0

---------

Co-authored-by: Vladimir Barinov <veselcraft@icloud.com>

* Create 00038-blacklist.sql

* typo xd

* Blacklists: Make it barely work (xd)

* БЛЯЯЯЯЯЯЯЯТЬ

* remove all

* account.ban, account.unban, account.getBanned

* rewrite ui

* add link

* add ignore button to blacklisted users

* fields blacklisted_by_me, blacklisted

* ad ability to blacklist when you ar blacklisted

---------

Co-authored-by: n1rwana <me@n1rwana.xyz>
Co-authored-by: Vladimir Barinov <veselcraft@icloud.com>
Co-authored-by: n1rwana <aydashkin@vk.com>
2024-12-13 17:51:10 +03:00
n1rwana
2e70a26283
feat(api): reports (#959)
* API для отправки жалобы

* make compatible with vk api

---------

Co-authored-by: mrilyew <99399973+mrilyew@users.noreply.github.com>
2024-12-13 17:11:26 +03:00