Commit graph

1145 commits

Author SHA1 Message Date
mrilyew
e4983df532 feat(settings): move js settings from feed settigs 2025-04-03 21:42:03 +03:00
mrilyew
f1eddb4c9a fix(feed window): disable overflow 2025-04-02 23:00:50 +03:00
mrilyew
c5ad7bbbaa fix(bsdn): fix play button dynamic width 2025-04-02 22:57:43 +03:00
mrilyew
b58f416292 feat(club subs): sort by "target" (id) i. follower 2025-04-02 22:54:25 +03:00
mrilyew
836eab13d4 fix(photos api): fix stupid incompabilites 2025-04-02 22:00:23 +03:00
mrilyew
c04361bcab fix(banned): replace "подозрительная активность" 2025-04-02 19:53:52 +03:00
mrilyew
e413cd4ed9 fix(playlists): fix 500 2025-04-02 19:49:53 +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
Vladimir Barinov
4815186b79
chore(statistics): change behavior of active users count (#1254) 2025-03-16 17:53:58 +03:00
Vladimir Barinov
9ef7d2d7c4
fix(age): calculation (fixes #1252) 2025-03-16 16:51:05 +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
ayato
6d721eb8b9
fix(messagebox): make dialogue content scrollable and remove height from dialogue header and action boxes (#1230)
Sometimes dialogue boxes get too long and end up going off the screen, making the content impossible to see. This change fixes that by allowing the dialogue content to scroll. It also removes some height restrictions from the header and action sections since they didn’t seem to serve a clear purpose (to me) and might have been causing layout issues.
2025-02-16 16:21:46 +03:00
mrilyew
7d0dbb26ed fix(editing): use post instead of get
fixes #1224
2025-02-03 17:26:16 +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
koke228666
228f14e384
feat(documents): add download icon for documents (#1216) 2025-01-31 00:39:58 +02: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
ayato
9ea67ac8aa
feat(audio edit): make lyrics textarea resizeable (#1212)
* Update al_music.js: make the lyrics textarea resizable

* Update al_music.js: change max height of lyrics textarea
2025-01-24 18:55:39 +03:00
Jillian Österreich
2d462a6c34
fix(js): update package-lock.json
In order for the Docker build to be successful
2025-01-23 13:25:34 +07:00
Jillian Österreich
8f17c95bce
fix: remove check that caused layout to move away 2025-01-23 13:23:58 +07:00
mrilyew
67653c7a52 fix(docs): fix doc editing xss 2025-01-22 20:11:09 +03:00
veselcraft
dbf91e2671
fix(email): layout goes brrrrrr 2025-01-22 17:41:37 +03:00
veselcraft
24b8d6f7f1
fix(user): 500 if logged in as admin and when user was previously banned permanently 2025-01-22 17:30:09 +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
Vladimir Barinov
504801520b
chore(user): increase first and last name limit to 64 2025-01-17 15:20:43 +03:00
mrilyew
bbcb94515d fix: fix 500 on unauth 2025-01-07 11:29:05 +03:00
mrilyew
3cd803ef31 fix(TRichText): amend fab39bd changes 2025-01-06 14:39:55 +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
ayato
e67963ed37
fix(messagebox): remove min-height from dialogue boxes (#1188) 2024-12-15 18:04:52 +03:00
mrilyew
4541ce1afe fix(profiles): fix #1186 2024-12-14 15:19:09 +03:00
mrilyew
ba5e2dba3c fix(search tips): remove them on click 2024-12-13 22:04:29 +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
veselcraft
29f4de2dab
fix(video): tweak ffmpeg args 2024-12-13 17:06:56 +03:00
mrilyew
0a1f717b45 fix(xss): fix #1181 2024-12-13 16:43:34 +03:00
veselcraft
198bf7472d
fix(datetime): adjust to timezone 2024-12-13 16:24:51 +03:00