Commit graph

318 commits

Author SHA1 Message Date
Celestora
15385ad69d Add auto-resolution for weird directory files error in Photo 2022-04-05 22:36:46 +03:00
Celestora
599c378b6f Remove redundant getDimensions 2022-04-05 16:13:25 +03:00
Celestora
be83a72be2 Add build-images to openvkctl 2022-04-05 15:54:53 +03:00
Celestora
ed9dac2ac1 Use correct image sizes in various templates 2022-04-05 14:39:13 +03:00
Celestora
608c34815e Add photo miniatures creation logic to Photo::saveFile 2022-04-05 14:10:31 +03:00
Celestora
f707c72f07 Cache image resolution in database 2022-04-05 11:38:19 +03:00
Ilya Prokopenko
17a60f24e8
Global: Fix photo uploads
Resolves #524
2022-03-30 16:52:14 +03:00
Celestora
1a2a0805d4 Add photos.save, photos.saveWallPhoto, photos.saveOwnerPhoto, photos.getUploadServer
Didn't test, but shouldn't be really tough to fix afterwards if it'll break.
2022-03-29 20:43:34 +03:00
veselcraft
f7a2da2cbf
VKAPI: Add Likes.add, Likes.remove and Likes.isLiked methods 2022-03-29 14:04:11 +03:00
veselcraft
8caecbe362
VKAPI: Make ACTUALLY work 'count' arg in Friends methods 2022-03-27 16:43:20 +03:00
veselcraft
dae42b0179
Users: Add ability to search by shortcode 2022-03-27 16:18:51 +03:00
Maxim Leshchenko
6588734caa
Support: Allow agents to prevent users from creating tickets 2022-03-26 22:06:07 +01:00
veselcraft
e6759f089f
Albums: fix getAlbumByPhotoId performance issue 2022-03-25 16:36:38 +03:00
veselcraft
4bf6fce260
VKAPI: Fix 500 error if the post is published as anon 2022-03-25 14:44:10 +03:00
veselcraft
514b73d41e
Merge branch 'master' of github.com:openvk/openvk 2022-03-25 14:05:59 +03:00
veselcraft
1472801874
VKAPI: Add attachments support for Wall methods
TODO Refactor: Перенести вывод в отдельную функцию, чтоб не дублировать код
2022-03-25 14:05:44 +03:00
Ilya Prokopenko
46db744caf
Notes: Add .underline for underlined text
Kinda resolves #499 but in a different way
2022-03-23 16:43:17 +03:00
celestora
e3312cb5f2
Replace invalid Start-Process command with SetPriority 2022-03-22 12:16:06 +02:00
Ilya Prokopenko
d619455e1f
Notes: Display new notes first
Resolves #500
2022-03-21 17:11:53 +03:00
Celestora
71c744c41f Add video uploading support for Windows
Untested, but should mark as resoved #506
2022-03-20 18:04:43 +02:00
Maxim Leshchenko
95de8e4514
Wall: Process hashtags only if it's not part of a word
Closes #449
2022-02-08 18:40:51 +02:00
Maxim Leshchenko
5f376b0517
Users: Consider nickname when searching for a user
Closes #465
2022-02-08 15:44:20 +02:00
celestora
881665831e
Allow non-cased letters in names 2022-02-08 12:15:29 +02:00
Maxim Leshchenko
13b614c377
Users: Add the ability to convert votes into a rating for yourself or other users
Closes #345
2022-02-07 23:33:49 +02:00
veselcraft
47093f40cc
Users: Bring back ability to NOT set the last names 2022-02-07 20:16:47 +03:00
veselcraft
8c44721a1e
Merge branch 'master' of github.com:openvk/openvk 2022-02-07 19:40:20 +03:00
veselcraft
a48d1cd8ce
Notification: Fix pagination (it didn't work)
Closes #460

vriska nu i vadristal ty tut v kode xddddd
2022-02-07 19:39:54 +03:00
Ilya Prokopenko
170343e989
Videos: Use an actual thumbnail for YT videos 2022-02-06 16:44:49 +03:00
Ilya Prokopenko
e5afb0fc88
Users, Groups: Fix URL avatar output
This commit fixes the avatar URL output for those who visit the website with a port (e.g. ovk.domain.tld:1337)
2022-02-06 16:10:35 +03:00
Celestora
51ace8d888 Enforce usage of non-empty, correct profile names.
Resolves #456
2022-02-05 20:09:37 +02:00
veselcraft
bd8e5318b6
Email: Rename Confirmations to Verifications, fix var names and codestyle 2022-01-31 15:35:35 +03:00
veselcraft
1df0545061
[WIP Maybe] Email: Add verification mechanism
This does work only if email is required by instance. If you're sysadmin, you can configure it in openvk.yml.
2022-01-31 14:45:53 +03:00
Maxim Leshchenko
67c61bf7a1
Support: Add ability to delete comments in a ticket
There used to be a button for this, but it didn't work. It works now
2022-01-28 15:34:13 +02:00
Ilya Prokopenko
3796135c2f
Search: Filter out deleted accounts 2022-01-27 14:46:28 +03:00
Ilya Prokopenko
870653ccb1
Notes: Add editing (#58)
Closes #58
2022-01-26 18:26:18 +03:00
celestora
cfb8b68fc0
Allow semicolons in links [wip?]
Resolves #359
2022-01-16 13:15:08 +02:00
Maxim Leshchenko
9feea4302a
Support: Some fixes
:3
2022-01-07 02:07:36 +02:00
Maxim Leshchenko
02e41e19b4
Support: Use pagination in the user's ticket list 2022-01-07 00:59:51 +02:00
Maxim Leshchenko
3edf34e0ea
Global: Add user option to hide ad poster 2022-01-03 21:13:53 +02:00
Maxim Leshchenko
1b1c88dd96
About: Add a page with information about an instance
Namely, brief statistics, a list of administrators (the administrator can be hidden from the list using a new right), a list of the 10 most popular groups and rules
2022-01-03 17:59:12 +02:00
Maxim Leshchenko
cca9151661
Groups: Add ability to hide posts from the global feed 2022-01-02 01:45:00 +02:00
Maxim Leshchenko
e5c650e351
Messenger: Allow sending messages not only to friends and add a privacy setting to customize this
Closes #91
2021-12-28 11:40:14 +02:00
Maxim Leshchenko
0a6ce0ffc0
Users: Do not delete subscriptions when banned for flood requests
It wasn't cool
2021-12-25 22:32:15 +02:00
veselcraft
efa89e075f
Global: Define standard unix time values
Thanks @vladislav805 for the idea!
2021-12-25 14:21:39 +03:00
Maxim Leshchenko
948719ec3d
Groups: Do not show group pin button in group list when the group cannot be pinned 2021-12-24 22:08:03 +02:00
Maxim Leshchenko
c77fbebd22
Discussions: Add ability to turn on the display of a list of topics above the wall 2021-12-22 17:31:58 +02:00
Maxim Leshchenko
601d120771
Global: Don't highlight mentions if they are part of a word or link 2021-12-22 16:03:41 +02:00
Maxim Leshchenko
3b54c4b878
Users: Add ability to transfer votes to another user 2021-12-19 14:52:40 +02:00
Maxim Leshchenko
8edebcb0d5
Users: Add ability to hide custom links by users through settings 2021-12-17 18:58:31 +02:00
Maxim Leshchenko
e00e3b9097
Support: Fix answers evaluating
Now it works
2021-12-16 20:25:42 +02:00
Maxim Leshchenko
cd91d4e310
Discussions: Some fixes 2021-12-15 19:00:26 +02:00
Maxim Leshchenko
c1707a5991
Groups: Fix discussions
Again. Pardon :3
2021-12-15 01:29:41 +02:00
n1rwana
a082d84d54
Support: Allow users to rate support answers (#342)
* New feature: users can rate support answers

Now users can rate support answers. They will see links "This is good answer" and "This is bad answer", like it was in original VK.
2021-12-15 00:56:23 +02:00
Maxim Leshchenko
e3a4c34574
Fixup "Groups: Discussions"
Just forgot to add these two files to the commit :3
2021-12-15 00:48:09 +02:00
Maxim Leshchenko
356c782f74
Groups: Discussions
This commit adds discussions (forums) to groups, similar to how it was implemented in the original VK
2021-12-15 00:27:17 +02:00
veselcraft
6ef1e533da
Users: Birthday refactoring
Also fixes #118
2021-12-14 18:53:44 +03:00
veselcraft
7dc3e8965d
Wall: Ability to ping users by short adresses
Fixes #28
2021-12-14 15:28:35 +03:00
Celestora
e6493d4f5c Fix logic error in антимат 2021-12-14 13:55:11 +02:00
Celestora
ae6ecbc67d Add christian mode (антимат) 2021-12-14 13:46:51 +02:00
Maxim Leshchenko
bb055f90aa
Fixup "Groups: Allow coadmins to delete comments on posts" 2021-12-13 00:43:20 +02:00
Maxim Leshchenko
78a8ee9a45
Groups: Allow coadmins to delete comments on posts
Closes #341
2021-12-12 21:47:39 +02:00
Maxim Leshchenko
1b510ca6a3
Support: Make the code more similar to rest of code in the project 2021-12-10 18:36:50 +02:00
Maxim Leshchenko
021971289d
Groups: Add the ability to write comments on behalf of the group 2021-12-04 21:46:26 +02:00
Maxim Leshchenko
0cca615d2a
Support: DESC sorting instead of ASC 2021-12-04 12:52:44 +02:00
Maxim Leshchenko
24624bb147
Users: Show all groups in the list of managed groups 2021-12-03 20:08:50 +02:00
Maxim Leshchenko
e433e83c5d
Users: Add two-factor authentication (#321)
This commit adds full TOTP 2FA. And even backup codes modeled on the original VK
2021-12-02 17:31:32 +02:00
Maxim Leshchenko
5beff8897c
Wall: Remove sending a notification when a comment is like that breaks the list of notifications
To fix broken notification lists for everyone, run this SQL query in the database with notifications: DELETE FROM `notifications` WHERE `originModelType` = 6;
2021-11-29 13:23:17 +02:00
Ilya Prokopenko
a77c7dea54
Support: L10n support and rewriting responses 2021-11-28 16:44:22 +03:00
veselcraft
03dee6b1f0
Wall: Last comments on the post 2021-11-28 14:39:42 +03:00
veselcraft
fd2ef5fad5
User: Age refactoring
Лапский, это вообще пиздец какой-то. Проще не додумался сделать?
2021-11-27 21:02:37 +03:00
veselcraft
478f8f9368
Support: Indicator for answered tickets for user
Fixes #187
2021-11-27 12:24:34 +03:00
veselcraft
a3d65a402e
VKAPI: Wall.get impovements
Added a "extended" value, added a "offset" to the Repositories/Posts->getPostsFromUsersWall function and little bit of refactoring
2021-11-24 22:24:44 +03:00
veselcraft
b2a993d649
Groups: Hotfix for "Managers" tab 2021-11-20 13:53:54 +03:00
veselcraft
e5238ecc41
User: Added a tab in "My Groups" page for usual and managed groups 2021-11-20 13:47:59 +03:00
veselcraft
b1a4a4a895
Videos: DESC sorting instead of ASC 2021-11-20 12:56:59 +03:00
Celestora
1c34e51750 Fix indentation in TRichText 2021-11-17 21:41:44 +02:00
Celestora
373513cabc WIP: Fix XSS vulnerability in support tickets 2021-11-17 21:39:22 +02:00
Celestora
b1fbb7560c Fix weird reference to "owner" column in Post::getOwnerPost 2021-11-17 18:27:11 +02:00
Celestora
0a7bc786b5 Add option to post anonymously 2021-11-15 21:45:48 +02:00
Ilya Prokopenko
3e0447c3f0
Notes: Undoing changes to Entities/Note 2021-11-15 14:11:51 +03:00
Ilya Prokopenko
98fd851729
Notes: Actual use of virtual ID 2021-11-15 14:00:49 +03:00
Maxim Leshchenko
5c9d3c085e
When you like a repost, put likes on the entire hierarchy of repost posts recursively (#287) 2021-11-13 22:28:17 +02:00
Ilya Prokopenko
33f027b84b
Clubs: Added a getWebsite function 2021-11-13 19:21:46 +07:00
veselcraft
9cef1f630f
Users: Added a getWebsite function just to fix unworking state xddd 2021-11-13 15:13:44 +03:00
Maxim Leshchenko
5556c88e44
Improvements related to group admins (#278)
Changes:
1. Add the ability to display only administrators on the page with a list of subscribers
2. Add the ability to hide the fact that the subscriber is an administrator
3. Fix display of large text in the block with the list of administrators
4. Fix display of the number of administrators
2021-11-12 15:31:23 +02:00
Maxim Leshchenko
e3358fcfa5 Pinning groups to the left menu
This commit allows you to pin groups to the left menu (max 10 groups, only those in which you are the administrator) from the My Groups page. Fixes #186
2021-11-10 11:18:25 +02:00
Maxim Leshchenko
989cd8952b Allow adding comments to group admins
This commit allows you to add a comment to group administrators, which will be displayed in the list of administrators
2021-11-06 13:06:57 +02:00
Maxim Leshchenko
b15b9643a0 Add group creator display options
This commit allows you to display the list of administrators instead of the group author (maximum 7 administrators, the rest will be hidden) and hide the group author
2021-11-05 11:44:50 +02:00
Celestora
c0c35c3872 Fix #161: online status bug 2021-11-04 13:45:30 +02:00
Celestora
e5ea1cd351 Make kromer storage type "real" to allow buying cents/pennies 2021-11-03 19:19:15 +02:00
Celestora
9e86389b62 Add admin-placeable alerts 2021-11-02 23:07:26 +02:00
celestora
7e4896a0d3
Videos: Fix pagination in videos 2021-10-17 12:03:31 +03:00
Celestora
0b7b67e2e7 Notifications: WIP: Add ajax notifications :D 2021-10-15 23:05:27 +03:00
Celestora
ad878474ce Videos: Implement checks to prevent uploads of non-video files or mediacontainers without vstreams
Resolves #234
Sorry, Beatrice
2021-10-15 12:34:59 +03:00
Celestora
829b3d1fbc Photos: Increase possible wideness/tallness of image to k=7 2021-10-14 14:40:28 +03:00
Celestora
b47d0dcd48 Support: WIP: Add support agent name customization 2021-10-14 13:35:17 +03:00
Celestora
b39dd44143 Settings: Add configurable shortcode length constraint 2021-10-13 23:41:12 +03:00
Celestora
1c341874a0 Wall [Experimental]: Allow to embed videos in posts 2021-10-13 22:51:28 +03:00
Celestora
240ce51705 Media: Allow to change the default data deletion policy 2021-10-13 18:23:02 +03:00
Celestora
4ab9d67718 [WIP] Comments: Allow photo uploads in comments 2021-10-12 14:17:21 +03:00
Celestora
ec4757f356 Commerce: allow disabling commerce in configuration
Resolves #183
2021-10-12 12:20:08 +03:00
Vladimir Barinov
81e5f2ae2c
Profile: Refactor rating bar. Again.
@celestora is not going to follow my idea kek
2021-10-10 00:05:20 +03:00
Celestora
b25af9b14d Refactor function name 2021-10-09 22:44:48 +03:00
Celestora
5c9c09c7a9 Refactor rating bar 2021-10-09 22:42:20 +03:00
celestora
c17c3382a0
Fix incorrect slug generation for GiftCategory 2021-10-09 21:54:42 +03:00
veselcraft
0bf7c3debc Support: Fix for QnA's Ticket list 2021-10-09 13:55:25 +03:00
veselcraft
820c9c22fe Support: Links and New lines are present now (fixes #38) 2021-10-09 13:46:41 +03:00
Celestora
626b343baa Add service api handler for Wall.getPost 2021-10-07 12:29:38 +03:00
Celestora
9336a91623 Add gifts
Signed-off-by: Celestora <kitsuruko@gmail.com>
2021-10-07 11:48:55 +03:00
Celestora
255d70e974 Add vouchers
Signed-off-by: Celestora <kitsuruko@gmail.com>
2021-10-07 11:47:30 +03:00
Celestora
83b88dfee3 [SECURITY] Fix invalid access control check in WallPresenter::renderPin 2021-09-20 16:46:55 +03:00
Celestora
839594cd70 Add pinning feature 2021-09-20 15:21:33 +03:00
0x7d5
d996be443f User: one more fix with birthday 2021-09-14 12:12:41 +05:00
0x7d5
bda20336b8 User: Fixed crashwhen going to the page of a user who has no birthday 2021-09-13 23:35:10 +05:00
0x7d5
bbf113bfd5 Profile: Added birthday 2021-09-13 21:34:02 +05:00
Ilya Prokopenko
dd307f29c2
Invite: normal implementation
Co-authored-by: celestora <kitsuruko@gmail.com>
2021-09-13 10:22:05 +07:00
root
7f1a5f2354 User: Now the User's page can be marked as Deceased. And now the user can be Incognito (at least, admins)
To mark the page as Deceased, type  in  field in Database. To be Incognito, type  in  field.

Specially for deceased drbream
2021-09-11 01:33:45 +03:00
Celestina Rempai
574f4918e5 Fix avatar erros 2021-02-06 20:38:39 +00:00
Alma Armas
d9fbe6f7aa lol forgot file 2021-01-27 18:05:29 +00:00
Alma Armas
0c80f1f041 Util: EntityStreams now accepts FQCNs if they're prefixed with \ 2021-01-27 18:01:18 +00:00
Alma Armas
080e918f11 Unread messages stub 2021-01-27 17:59:11 +00:00
Alma Armas
1d46bbb6d6 Refactor albums 2021-01-27 17:41:21 +00:00
Alma Armas
16f1b22ecb Refactor albums 2021-01-27 17:39:15 +00:00
Alma Armas
49a9a9bdb1 Merge branch 'master' of https://github.com/openvk/openvk 2021-01-17 11:57:12 +00:00
Alma Armas
9fb59faba7 Add HTMLPurifier as a composer dependency
Co-authored-by: rem-pai <kitsuruko@gmail.com>
2021-01-17 11:55:43 +00:00
veselcraft
b494368585 Delete notes func 2021-01-16 18:19:54 -05:00
Alma Armas
aed731a59f [SECURITY] Fix IP-based rate-limiting
Co-authored-by: Celestine <34442450+rem-pai@users.noreply.github.com>
2021-01-07 16:23:24 +00:00
Alma Armas
fc9df5624b Add NSFW CW back
Co-authored-by: Celestine <34442450+rem-pai@users.noreply.github.com>
2021-01-07 16:19:36 +00:00
Alma Armas
9132eb8d98 Get rid of music
Co-authored-by: Celestine <34442450+rem-pai@users.noreply.github.com>
2021-01-07 16:17:19 +00:00
Alma Armas
5f8c4ed248 Merge branch 'master' of https://github.com/openvk/openvk 2021-01-04 17:38:35 +00:00
Alma Armas
8b1bc4b894 [FIX] HTTPS errors in Tracy 2021-01-04 17:38:17 +00:00
veselcraft
057e6c5c63 [NEW FEATURE] Microblog
Can be enabled in settings
2021-01-04 12:33:25 -05:00
Alma Armas
2f09e32b1e Add rate limiting feature
Co-authored-by: Rempai <kitsuruko@gmail.com>
2020-12-31 21:19:58 +00:00
Alma Armas
2ed60763a1 Refactor search 2020-11-22 10:29:27 +00:00
Alma Armas
a608ebc1a7 Always return absolute URLs for avatars 2020-09-29 13:03:55 -07:00
Alma Armas
e50aa27eeb Fix hyperlinker 2020-08-24 11:37:47 +00:00
Alma Armas
fdb8b35609 Add post size limits 2020-08-20 12:58:40 +00:00
Alma Armas
efef446220 Make eventdb optional 2020-08-20 09:03:45 +00:00
Alma Armas
512f21c1a8 [IMPORTANT] Fix critical bug in EntityStream 2020-08-17 14:23:16 +00:00
Alma Armas
e18a661507 [WIP] Add VK API compat layer 2020-08-12 11:39:06 +00:00
Alma Armas
37c5ef26e6 oops i forgot to update sql file 2020-08-01 14:30:08 +00:00
Alma Armas
9303dd6562 Modify search to use EntityStream 2020-08-01 14:27:10 +00:00
Alma Armas
82af3a27cc Begin refactoring Correspondence::getMessage to be compatible with VK API 2020-08-01 14:24:39 +00:00
Alma Armas
9dc25aa938 Refactor Messages::getCorrespondence 2020-08-01 14:23:43 +00:00
Alma Armas
f235338d69 Add Postable::getLastComments 2020-08-01 14:23:08 +00:00
Alma Armas
98045ec121 Add club managers logic to Club model 2020-08-01 14:22:52 +00:00
Alma Armas
1cfb680a2c Modify Correspondence::sendMessage behaviour because current behaviour is useless and confusing 2020-07-18 07:47:42 +00:00
Alma Armas
af6eeb882c Add quickban button for admins 2020-07-17 16:26:59 +00:00
Alma Armas
9a99aeb3fc Make support agents identifiable 2020-07-16 20:09:48 +00:00
Alma Armas
606a61c7b3 Remove duplicate method call 2020-07-16 20:08:46 +00:00
Alma Armas
5b86b1fab7 Rate limit certain notifications
Likes and reposts will not emit notifications more than once per 2 minutes
2020-07-15 12:32:34 +00:00
Alma Armas
150f420038 Change messages style to more old
Co-authored-by: Kos Furler <35310076+kosfurler@users.noreply.github.com>
2020-07-08 11:10:40 +00:00
Alma Armas
f9e0815455 System albums are now hidden for clubs only 2020-06-29 19:53:19 +00:00
Jill Stingray
7d4fa2886b Use twemoji 2020-06-26 09:30:15 +00:00
Jill Stingray
213c5410a2 Fix error, that mutilated post if it had multiple same emojis (OVK-113) 2020-06-26 08:36:56 +00:00
Jill Stingray
a032ba09d2 Make notes soft-deletable 2020-06-24 20:20:25 +00:00
Jill Stingray
65cd0e93df Fix video pagination 2020-06-24 15:25:43 +00:00
Jill Stingray
48a2040322 Fix fatal error when changing username
I forgot name of DatabaseConnection class xddd
2020-06-23 20:05:13 +00:00
Jill Stingray
1b3052869f Fix video uploads 2020-06-23 20:04:17 +00:00
Jill Stingray
6bf1c9bb29 Fix search 2020-06-23 20:02:52 +00:00
fkwa
0f89de3011
Fix address collision 2020-06-20 10:57:21 +02:00
Jill Stingray
20ba764f22 Add post deletion
Co-authored-by: vovocka <22993408+veselcraft@users.noreply.github.com>
2020-06-18 14:22:32 +03:00
Jill Stingray
94cd52ccf5 Add video deletion
Co-authored-by: vovocka <22993408+veselcraft@users.noreply.github.com>
2020-06-17 22:04:08 +03:00
Jill Stingray
e02e95f648 Add aliases for default upload processing mode 2020-06-16 17:14:05 +03:00
Jill Stingray
d509096d46 Add themepack support 2020-06-11 23:21:49 +03:00
Jill Stingray
eba579046e Make messages capable of holding attachments 2020-06-11 12:55:43 +03:00
Jill Stingray
095b7960ca Fix short addr collision 2020-06-11 12:54:20 +03:00
Jill Stingray
db845c3c0b Initial commit 2020-06-07 19:04:43 +03:00