Commit graph

320 commits

Author SHA1 Message Date
Vladimir Barinov
a859fa13a5
[WIP] Textarea: Upload multiple pictures (#800)
* VKAPI: Fix bug when DELETED user appear if there is no user_ids

* Textarea: Make multiple attachments

* постмодернистское искусство

* Use only attachPic for grabbing pic attachments

TODO throw flashFail on bruh moment with pic attachments

* draft masonry picture layout in posts xddd

где мои опиаты???

* fix funny typos in computeMasonryLayout

* Fix video bruh moment in textarea

* Posts: add multiple kakahi for microblog

* Photo: Add minimal implementation of миниатюра открывашка

Co-authored-by: Daniel <60743585+myslivets@users.noreply.github.com>

* Photo: Add ability to slide trough photos in one post

This also gives ability to easily implement comments and actions

* Photo: The Fxck Is This implementation of comments under photo in viewer

* FloatingPhotoViewer: Better CSS

- Fix that details background issue
- Make slide buttons slightly shorter by height

* FloatingPhotoViewer: Refactor, and make it better

- Now you can actually check the comments under EVERY photo
- Fix for textarea. Now you can publish comments

* Fix funny typos xddd

* Kinda fix poll display in non-microblog posts

* Posts: Fix poll display in microblog posts

* Add photos picker (#986)

* early implementation of photos pickir

Добавлен пикер фоточек и быстрая загрузка фото. Так же пофикшен просмотрщик фото в группах. Но, правда, я сломал копипейст, но это ладн.

* Fiks fotos viver four coments.

* Add picking photos from clubs albums

Копипейст и граффити так и не пофикшены

* Fix graffiti and copypaste

Какого-то хуя копипаста у постов срабатывает два раза.

* some fixesx

* dragon drop

* Fix PHP 8 compatibility

* 5 (#988)

---------

Co-authored-by: celestora <kitsuruko@gmail.com>
Co-authored-by: Daniel <60743585+myslivets@users.noreply.github.com>
Co-authored-by: lalka2016 <99399973+lalka2016@users.noreply.github.com>
Co-authored-by: Alexander Minkin <weryskok@gmail.com>
2023-10-03 19:40:13 +03:00
lalka2018
cc5a56917b
fix gifts pagination (#984) 2023-09-18 18:09:25 +03:00
lalka2018
468eba80bd
Locales: Make more strings translatable (#961) 2023-09-17 16:22:59 +03:00
n1rwana
0ef413a5b9
Ability to hide "My applications" from the menu (#937) 2023-09-17 00:56:36 +03:00
lalka2018
2939936534
Update Post.php (#983) 2023-09-16 19:51:36 +03:00
lalka2018
06f324f98c
Фиксы для #980 и #979 (#982)
* Что я должен здесь сказать?

* playerock

* Copypaste
2023-09-16 19:14:23 +03:00
lalka2018
97a176c261
Редактирование постов только покруче (#979)
* Add editing posts

* Add checkboxes

* Add ctrl+enter + fix empty posts

* Fix funny bug
2023-09-14 20:54:22 +03:00
lalka2018
69d0739ef1
dghnryjtyj (#972) 2023-08-20 17:55:41 +07:00
veselcraft
a2c5896fa1
Reports: Fix 500 error while trying to delete group's publication 2023-08-15 01:10:49 +03:00
veselcraft
bddfbdc368
Reports: Fix 500 error while trying to delete any non-text publication 2023-08-15 00:59:57 +03:00
Jill
6159262026
Add reports (#634)
* Reports: [INDEV] Undone implementation of reports

* Reports: Backend is done

* Reports: Still makin it...

* Reports: Added report window

* Reports: Corrected the content type

* Reports: Make it work

* Reports: Minor fixes and localization

* Reports: Ability to hide Share and Like buttons

Also renamed the .sql file

* Revent some changes from 8f8d7bb

I will move them to the master branch

* Reports: Only for those who can access Helpdesk

* Reports: Modified the route

* Reports: Change the routes

* Reports: Show reports count

* Report: Fix URL

* Обновление репортов (#715)

* Репорты живы

* 2

* Better reports

* Логи

* Update DBEntity.updated.php

* noSpam

* Сбор IP и UserAgent + фикс логирования в IPs

* Новые поля для поиска etc.

* Fixes

* Fixes and enhancements

* Поиск по нескольким разделам

* Reports enhancements

* Совместимость с новыми логами

* Совместимость с новыми логами

* Update Logs.xml

* Update Logs.xml

* Logs i18n

* Update Logs.xml

* Update AdminPresenter.php

---------

Co-authored-by: veselcraft <veselcraft@icloud.com>
Co-authored-by: Ilya Prokopenko <55238545+Xenforce@users.noreply.github.com>
Co-authored-by: n1rwana <aydashkin@vk.com>
2023-08-11 16:50:19 +03:00
n1rwana
8265dc0fc6
Add logging system (#940)
* Логи

* Update DBEntity.updated.php

* Сбор IP и UserAgent + фикс логирования в IPs

* Fixes

* Совместимость с новыми логами

* Update Logs.xml

* Logs i18n

* Update Logs.xml

* Update AdminPresenter.php
2023-08-11 16:43:39 +03:00
n1rwana
5c76b56da4
Исправление дублирования подписчиков/лайков/друзей (#941) 2023-08-04 15:10:23 +03:00
veselcraft
cf23022626
БЛЯЯЯЯЯЯЯЯТЬ 2023-07-20 02:36:34 +03:00
veselcraft
d25c2ee183
Blacklists: Make it barely work (xd) 2023-07-20 02:35:09 +03:00
celestora
7b92ed58e7
Fix bug in photo vk api structure
I forgor that `pid` refers to virtual, not absolute, id
2023-07-13 14:27:07 +03:00
celestora
070ea16536 Fix permissions reporting (can_create_topic, can_post) for clubs in vk api 2023-07-06 11:44:46 +03:00
lalka2018
2e76ca16df
Wall: add notes attachments to posts (#907)
* Posts: add notes attachments
2023-07-05 14:54:58 +03:00
lalka2018
59554172d6
Поддержка видео с YouTube в API и фикс board.php (#905) 2023-06-22 14:22:07 +03:00
lalka2018
2fed1d9fef
Подсказки в поиске (#901) 2023-06-22 12:39:25 +03:00
n1rwana
29f482419c
Перенос ветки 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>
2023-06-15 12:36:36 +03:00
lalka2018
3e69d06474
VKAPI: методы для подарков, заметок, статусов, обсуждений и немного для фоток и групп (#876)
* API methods for gifts, notes, statuses

* Some fixes

Строки локализации у gifts.send теперь не костыльные и можно прикрепить до 10 аттачей к посту

* Small imp

Пофиксил пагинацию у заметков и подарок
Перенёс структуру заметок
Добавил аттачи к комментариям
Добавил проверку на удалённость аттача
Ну и пофиксил сортировку заметок

* VKAPI: Some methods for topics and photos

Добавлены методы для обсуждений (addTopic, closeTopic(), createComment(), deleteComment(), deleteTopic(), editTopic(), fixTopic(), getComments(), getTopics(), openTopic(), unfixTopic())
и для фотографий (createAlbum(), editAlbum(), getAlbums(), getAlbumsCount(), getById(), get(), deleteAlbum(), edit(), delete(), deleteComment(), createComment(), getAll(), getComments())

* fixsex
2023-06-13 21:03:43 +03:00
lalka2018
dd97ded326
Search: some fixes (#896) 2023-06-13 20:57:49 +03:00
lalka2018
f9f6270da0
Search: Add search with parameters (#880)
* Search with parameters

* Small improvements

* Small improvements no.2

Поиск теперь нормально выглядит на других темах
При поиске по группам отображается количество участников там
Костыль с пропуском постов возвращён но немного изменён
Добавлен костыль к комментариям чтобы не показывались комменты с удалённых постов и не было бага как в вепуровке
Добавлены ключи в советском и имперском языке для моих прошлых пуллов (ну и этого конечно)

* Fix debilny oshibky

Убрал лишние ключи локализации, исправил панель поеска и исправил hometown

* fiksy bagiv

* ok

* ok 2

* ok

* rrrrrrrrrrrrrrrr

Добавил параметры в vkapi users.search(), пофиксил проверку коммерции, сузил параметры ещё больше и добавил анимацию выдвижения поиска чтобы красиво было
2023-06-10 18:54:02 +03:00
Ilya Prokopenko
c803a6ff62
Videos: Add upload disabling 2023-05-27 13:31:20 +07:00
Ilya Prokopenko
4bfdeddd22
Video: Fast addition of a video with its file name
For example, how would you know there were spoilers for Steins;Gate if
the video was titled "Unnamed Video.ogv"?
2023-05-23 19:28:21 +07:00
lalka2018
8ccb98473f
Репост в группу (#873) 2023-05-21 18:38:39 +03:00
lalka2018
cb6578228e
Нормальная смена аватарок как в старом вк (#874)
* Fast avatar changing

* Fixed changing avatar from settings

* fixed otstup
2023-05-14 23:49:33 +03:00
veselcraft
eb439b278c
ёбаный в рот а файл забыл добавить 2023-03-13 17:46:54 +03:00
celestora
6abdb0d593
Further improvements to TRichText
Fix link parsing + remove zalgo completely
2023-02-25 18:08:17 +02:00
celestora
56fe715bce
Fix ';' error in posts 2023-02-25 18:07:29 +02:00
veselcraft
54092eb6c0
Video: Add section for full url to video, also little refactor and fix compatibility for VK4ME 2023-02-21 00:35:10 +03:00
celestora
0da679fae6
Use simpler regex in TRichText::removeZalgo
lmao i forgor character class selectors are a thing
2023-02-17 14:53:45 +02:00
celestora
cbec4b549f Minor improvements in video attachments 2023-02-07 22:45:30 +02:00
veselcraft
c6c8e8e175
Global: add OpenVK Refresh info 2023-02-03 14:22:19 +03:00
celestora
beb8b4eaa6 Move photo page url resolution to model
мб пофиксит 842 янеипу
2023-01-29 19:14:29 +02:00
celestora
c6a77de234 Cleanup useless copies in processVideo.sh + completely change everything to mp4 2023-01-28 23:22:01 +02:00
celestora
4845f8f318 Fix Video::getThumbnailURL regex meow
Fixes #841
2023-01-28 23:09:05 +02:00
celestora
344ba53acd
Смешной мясной плеер (#839)
* Add video title under post attachment box

* Add VK-styled player

* bideoplayer on video page now

sosiski

* Fix context menu display on Chrome

* Videos now use H.264 instead of Theora

hazbin hotel nude mo

а вообще тут мог бы быть AV1, но пидорасы из купертино фанаты libx264
2023-01-28 22:25:00 +02:00
celestora
63f302b2ab Use preg_match_all in Video::saveFile
На самом деле там должен был быть и так preg_match_all но видимо какао((
2023-01-28 00:27:16 +02:00
celestora
e834fae0fe
Update Photo.php 2022-12-21 01:26:00 +02:00
celestora
3c4f41e58c
Return more absolute url in Photo::getSizes::type::url 2022-12-21 01:20:17 +02:00
veselcraft
462d667e53
Global: Implement showing platform 2022-12-17 02:03:02 +03:00
celestora
768f834ea1 Use hermite filter instead of point for image resize
Fixes terrific image distortion during downscaling
2022-12-14 23:10:15 +02:00
celestora
65a232b6ef Experiment(Photo): add "quick" image saving method to increase teh upload speedz
если это сработает то я буду ржать :)
2022-12-14 22:15:29 +02:00
celestora
ea1c618489 Revert "Experiment(Photo): use imagick+cloning instead of gd2"
коммит говно мы его удаляем
2022-12-13 01:03:54 +02:00
celestora
918ff0e0f0 Experiment(Photo): use imagick+cloning instead of gd2
АААААААААААА
2022-12-13 00:47:25 +02:00
celestora
f9083edfc4
Add l-lacker social-styled page backrops (#805)
чокопай
2022-12-12 01:23:42 +02:00
celestora
d321b524fd Make comment notifications more informative
Quote length increased to 400 also tags are being stripped now
2022-12-11 16:27:46 +02:00
celestora
8a893daec0 Add mention notifications
Draft implementation of mention notif
2022-12-10 21:33:13 +02:00
celestora
475f637413
uncockify youtube embed 2022-12-09 00:14:15 +02:00
celestora
bf1a443c99
Explicitly forbid posts made by clubs be a deactivation message 2022-11-16 23:39:48 +02:00
celestora
d09e647d1d
amogus fix
should work now with weblate xddd
2022-11-14 17:01:56 +02:00
celestora
55ec291650
Allow __transNames to be empty 2022-11-14 16:47:34 +02:00
n1rwana
1eb74bbafd
Карточка Агента Поддержки (#717) 2022-11-07 23:36:07 +02:00
n1rwana
e8c0fe8c05
Fixed table names in the Chandler editor (#772) 2022-11-02 15:48:35 +03:00
n1rwana
f5b1890645
Редактор Chandler (#721)
* Chandler Editor

* Features
2022-11-02 13:45:49 +03:00
veselcraft
7c516a8089
Messages: @celestora had forgotten about existing of deleted messages for correspondencies sql file, so i fixed it in her place 2022-10-23 12:38:51 +03:00
celestora
0e22d1866f Fix certain poll functions
Polls can now be set to quiz mode correctly, weird characters in options no longer crash OpenVK
2022-10-11 20:24:34 +03:00
celestora
5203229e9e
Fix pelmeni moment 2022-10-11 19:34:28 +03:00
celestora
f2ca6be4d5
Add polls (#743) 2022-10-11 19:04:43 +03:00
veselcraft
699df76619
VKAPI: Make offset actually work in groups.get method
Users: add count and offset (acting like switch for literal offset) param to getClubs
2022-10-11 03:46:49 +03:00
celestora
c09694b568 Localize "posted in ..." messages
Also preliminary solved #739
2022-10-08 23:47:21 +03:00
n1rwana
5b3a1f50e9
Shortcode aliases (#690)
* Shortcode aliases

* Fixes

* Newline

* Fixes + SQLs renamed

* Fixed clubs aliases
2022-09-17 00:21:29 +03:00
celestora
384c0da78b Revert Clubs::getPopularClubs change
This functionality is so unstable it causes majority of installations to fail miserably out of the box. The performance also is a major concern. Might re-add later. Sometime.

btw i amended
2022-09-12 20:51:41 +03:00
n1rwana
125c6b1b63
Ability to block URL (#693) 2022-09-05 18:57:41 +03:00
n1rwana
a935b2ca31
Заморозка страницы (#698)
* Заморозка страницы

* Bugfixes

* ok
2022-09-05 11:16:22 +03:00
celestora
b328254285 Use adler32 hash for app avatars (php74 compat) 2022-08-20 21:36:56 +03:00
celestora
d767d8e2eb
Приложения (#674) 2022-08-20 21:07:54 +03:00
celestora
6e17c446bf Add ability to preview notes without publishing
Resolves #604
2022-08-19 20:20:09 +03:00
celestora
d02cef93ee
Search hashtags via word index (#655) 2022-08-15 13:08:07 +07:00
Maxim Leshchenko
42bba82941
Correct the code style in the profile deactivation function 2022-08-05 21:29:31 +01:00
Ilya Prokopenko
b1ce106e4c
Profile deactivation function (#626) 2022-08-05 23:00:52 +03:00
celestora
74f5d0a705
Don't truncate group names
Now long group names are allowed (VK pre-2012 std)
2022-08-04 21:42:30 +03:00
veselcraft
22e4e76b9f
Friends: Add list with friends online 2022-07-31 14:33:23 +03:00
Ilya Prokopenko
74b3bf5e3f
Photos: Add changing of update date of album
Resolves #588
2022-07-29 16:41:43 +07:00
veselcraft
44241be808
VKAPI: Add new methods for Wall - getComments, getComment, createComment, deleteComment 2022-07-23 15:50:00 +03:00
veselcraft
658b60d5f0
VKAPI: Disable HTML output in prior to RAW output
RichText: Replace CR+LN with just LN because it causes graphical bugs in VK4ME
2022-07-21 09:40:42 +03:00
Maxim Leshchenko
5b5d095121
Users: Improve the birthday field
Now you can hide the year of birth. Also people who were born on January 1, 1970 can specify their date of birth
2022-07-09 15:33:55 +01:00
veselcraft
b731cb4c87
Merge branch 'master' of github.com:openvk/openvk 2022-05-31 17:40:04 +03:00
veselcraft
db3789bef8
Messages: Redesign, Date fix, Pagination
Search: Kind of fix by adding more shitcode xdddddd

Co-authored-by: Daniel <60743585+myslivets@users.noreply.github.com>
2022-05-31 17:39:52 +03:00
Ilya Prokopenko
2dd37519e3
User: Always return the name with a capital letter 2022-05-31 14:20:02 +03:00
Celestora
1667713aa0 Transliterate names to latin for en.strings 2022-05-30 11:09:45 +03:00
Celestora
5d11cdbe46 Properly output marital status for female users 2022-05-30 10:46:27 +03:00
Maxim Leshchenko
060100821d
Global: Add toggle home page between My Page and My Feed
The switch is in the interface settings. Closes #361
2022-05-23 09:18:06 +01:00
Maxim Leshchenko
f8c0071227
Groups: Fix exception on groups with empty description 2022-05-20 17:23:10 +01:00
Maxim Leshchenko
0818e507a8
Support: Remove some commented code and make code a little more consistent with the code style 2022-05-20 15:16:39 +01:00
Maxim Leshchenko
12210d0fb0
Groups: Allow line breaks in descriptions
Closes #542
2022-05-20 13:45:14 +01:00
Maxim Leshchenko
fe2010560a
Global: Make code more consistent with code style 2022-05-08 12:11:18 +02:00
Maxim Leshchenko
aef369ac58 Auth: Fix bug in user registration
Due to fact that the automatically generated setEmail method is replaced by the method for a complete change of email address, which runs the save method. Because of this, in case of an error, the user will still be created. This commit renames the method for completely changing email address to avoid replacing the automatically generated method.
2022-05-07 15:10:55 +02:00
Maxim Leshchenko
45fe270700
Users: Add ability to change email address in settings
Closes #63
2022-05-06 16:17:08 +02:00
Celestora
622c9204b2 Use Photo::getVkApiSizes in wall.get
Now wall.get will reflect accurate information about image sizes and their dimensions.
2022-04-24 15:38:53 +03:00
Celestora
ae3850b75e Add black bars to weird videos
Fixes #466
2022-04-18 20:40:32 +03:00
Celestora
3d24c1c881 Try to guess CDN the protocol if it is set to NULL in config 2022-04-18 19:42:05 +03:00
Celestora
2c10659003 Change hashtag format to include danbooru tags as a subset
Before: #kashim'a_(kantai_collection) -> #kashim'a_(kantai_collection) doesn't work
Now: #kashim'a_(kantai_collection) -> <a (...)>(...)</a> works
2022-04-18 19:36:44 +03:00
Celestora
377277f3d7 Allow mentioning people with funny names too
Fixes #494
2022-04-18 19:22:36 +03:00
Ilya Prokopenko
d969e29621
About: Increase the top groups by 10 2022-04-18 13:54:56 +07:00
Ilya Prokopenko
28c66af133
About: Increase block of top groups & add "Links"
Closes #510

Co-authored-by: Celestora <kitsuruko@gmail.com>
2022-04-14 18:36:38 +03:00
Maxim Leshchenko
99344c5497
Groups: Add admin-placeable alerts 2022-04-14 12:29:41 +02:00
Celestora
26cb287b67 Fix condition in Media::save which made videos stay in processing status for infinite amount of time 2022-04-12 22:12:15 +03:00