* Removing Vendor folder and go dep files
Adding support to Go mod
* Fixing message format for boolean argument (%t)
* Updating depency versions
Fixing go-i18n to latest v1 release (v1.10.0)
Repairing a test due to golang text update
Fixing logging information messages
Update to latest changes for anacrolix torrent API
* Update .travis.yml
Go dep is not needed anymore
* Update .travis.yml
* Go modules env variable
Adding support for go modules inside travis script
* Moving env variable
* Fixing test issue
* Fixing a format error in previous code
* Fix parseAllDates() that could break dates (in listing)
Fix parseAllDates() that would break torrent list dates if it had already been executed before
* check if date value is NaN before applying it
* Update upload.go
* Update helpers.go
* Update template_test.go
* Update upload_multiple.jet.html
* change variable names
* wrong copypaste
* change variable name
* ditto
* Fix travis
* Update main.css
* Update upload.go
* Update upload.jet.html
* Update main.css
* Update upload.go
* More compact form
* CSS changes to go along
* Update main.css
* Update upload.jet.html
* Slightly lower bottom margin
* Update upload_multiple.jet.html
* tomorrow color adjustements
* small css adjustements
* Update upload.go
* Update default_config.yml
* Update default_config.yml
* Update structs.go
* Update user.go
* Update structs.go
* Update upload.go
* Update default_config.yml
* Update upload_multiple.jet.html
* Update upload.go
* Update upload.jet.html
* Update template_test.go
* this one is optional for anidex
* Update default_config.yml
* Possible improvement
As mentionned in my comment, it seems that having a checkbox already checked and disabled for logged in user + having the input text for apikey is a bit tedious.
Moreover, asking to check and fill the input text to upload in anidex when you are not logged is doing things twice. If you don't want to upload to anidex, don't fill the input.
So this commit push a new behaviour:
* If you are logged in and you have filled your anidex/nyaasi api key : the form should only show the checkbox asking if you want to upload to nyaasi.
* If you're not logged in or you don't have filled your api key in your profile settings: you only show the input text for the api key and not the checkbox. If someone wants to upload to nyaasi/anidex, he will just need to fill the input.
* This adds back the support of anonymous upload when logged in or not.
This works simply by checking if the user wants to upload as anon (when he checks the checkbox "upload as anonymous") or by checking the emptyness of apikey.
+ reverts the condition statements since it was needed to have apikey empty
* Forgot to save this file
* This commit adds the go routines for each upload service (anidex, nyaasi, tosho).
New controller and url to check the upload status (/upload/status/:id).
If you add ?json at the end, it outputs a json format of the multi upload status.
To prevent memory overload, we only keep in memory the multiupload status for 5 minutes.
Moved multipleform struct from templates to upload utils.
* fix form display on classic theme
* This commit adds:
* Javascript refreshing of the upload status
* Localization of the pages
* Fixed some bugs
This works, only need to get torrent file now.
* Added a new function to get the Path to the torrent file.
* Added a function to check that a torrent file exists and if not generate it on multiupload
* Enabled file upload through http post request to anidex
* Fixed bugs
* Modified the behaviour to generate torrent preivously. It is a synchrone function now. So we need to make it asynchronous in download.go
Now torrents file are always generated at upload time in a background processus with the correct trackers (needed ones + the ones provided by the user).
I made the anidex tracker as a needed one to allow multiupload even if the user hasn't included in his torrent file/magnet url.
* Moving deadtrackers list to default config
Support torrent file creation when upload without scraping
* Fix possible bug where no one is seeding a torrent yet (first time upload)
Add primary tracker in torrent file
* Fixing issue with boolean pointer for private torrent
* fixing index out of range for announcelist filtering
Fixing anidex tracker not found
* Fixing lang id error
* Anidex upload works
* Fix for multiupload with magnet
* This adds TokyoTosho support. Since TokyoTosho API only support upload by URL (and not torrent file upload). We need to make the download url available without ddos protection.
Also TokyoTosho doesn't need a category select. Since it does have limited option, we can automatically convert our categories to the tokyotosho one.
* Removing the folder tosho and put categories.go directly in upload package.
Added category conversion for nyaasi too.
Added tests on category conversion.
* This should add nyaasi support.
Is not tested though.
* Updated defaut config with new nyaa.si behaviour?
* Forgot to commit this file
* missing background color,
fix missing background color on markdown editor on torrent view page
fix missing classic styling on "Upload to Nyaa/Sukebei" button
* Fix theme toggler that didn't behave as intended
Fix theme toggler that didn't behave as intended when the user was logged in and his theme cookie had a different value than his user theme setting
* Classic theme default on nyaa.pt
* Add new followers directly to user.Followers
* Update user.go
* Remove useless condition
* Query an update of user followers if at 0 when looking at his profile
* Fix comment not appearing until you refreshed the torrent page
* call ViewHandler so that comments visually update properly
* Remove now useless imports
* Add "uploader" userstatus in comment
* GetLikings() & GetFollowers() now return count too
* Don't update follower count here
* Update follower count directly here
* show liking count
* Update user.go
* Update profile.jet.html
* Update torrentParam.go
* Fix locked torrents that were shown even when they should not
* Update torrentParam_test.go
* remove inline styling
* Update main.css
* Update upload.jet.html
* Update main.css
* Update tomorrow.css
* Update classic.css
* Update classic_colors.css
* Update index_site.jet.html
* Make announcements support markdown
* Add markdown form to announcement creation
* fix "report" text position
* Add exclude search option to exclude words
* Make sure the "NameLike" value is the search query because we edit it during a search
* Show search content in page title for /feed too
* rollback
* Add "Search" variable that shows exactly what is being searched
* Use "Search.Search" variable here instead of NameLike because NameLike is edited
* Update torrentParam_test.go
* Update torrentParam.go
* remove redundant spaces from NameLike
* Update torrentParam.go
* Update torrentParam.go
* Update torrentParam.go
* Update torrentParam.go
* turn date input into type date
* bigger date inputs
* add support for YYYY-MM-DD dates
* rollback this change
* rollback
* Update search.jet.html
* Update helpers.go
* Update template_functions.go
* Update torrentParam.go
* only uploader & staff can comment on locked torrents
* Add "Upload to Nyaa/Sukebei" button for mods
* Update torrentlist.jet.html
* Update view.jet.html
* Update view.jet.html
* fix wrong page title for notifications page
* Fix "torrent is being generated" message showing up even when the torrent couldn't be generated
* Add janitor user status
* Remove usage of deprecated HasAdmin() function
* Give Janitors access to mod panel
* Stop using deprecated HasAdmin() function
* Stop using deprecated HasAdmin() function
* Update edit.go
* Update profile.go
* Rollback bad changes, remove redundant email check and stop using deprecated function
* Show every userstatus (member, janitor, banned, mod) in comments
* Return empty status if anonymous
* Show no userstatus for anonymous profile
* Show moderation link to janitors too
* Stop using deprecated HasAdmin() function
* Stop using deprecated HasAdmin() function
* Stop using deprecated HasAdmin() function
* Add Janitor to userstatus select in user edit
* "Janitor" translation string
* didnt mean to commit this change
* rollback wrongfully comitted changes
* rollback commit
* Update CHANGELOG.md
* Fix wrong id for translation
* remove deprecated HasAdmin() function again
* change name of variable used in comment loop for clarity purposes
* visual cue for locked torrents in torrent listing for admins
* add visual cues for hidden torrents in admin torrent listing
* Dont show delete buttons for janitors
* janitor cannot delete torrents
* show block/unblock button in torrent list for janitors instead of delete button
* fix function that didnt get executed
* add ban buttons on userlist & visual cue for banned users
* Fix "user successfully deleted" message showing even if user wasnt deleted
* Add "ban" button, no "delete" button for jantiors
* add "unban" and "ban" translation strings
* add "unban" and "ban" translation strings
* different <form> for ban button
* Update index.jet.html
* add userprofile ban route
* add toggleBan() function, janitors dont need captcha either
* fix panic error when deleting an anonymous comment
* add user_banned_by and user_unbanned_by
* add user_banned_by and user_unbanned_by
* Make ToggleBan() return whether or not the user is now banned
* Add handler for /ban route
* change log filter
* hide locked torrents from regular users
* hide locked torrents from regular users
* hide locked torrent from api search for regular users
* change function to CurrentOrJanitor
* change function to currentorjanitor
* change function to currentorjanitor
* add CurrentOrJanitor function
* fix extra (
* fix extra ) and wrong variable name
* Fix wrong value for janitor user status
* Fix user edit that did not work because of "unique constraint user.emails" error
* only immediately visually update user if user has been updated successfully
* use FindAllForAdminsOrderBy in order to preload users
* create FindAllForAdminsOrderBy that preloads users
* Show username instead of ID in Uploader column in admin panel
* Fix userprofile buttons overflowing at some specific resolutions
* Mods can set users as janitors
* Show ban/unban buttons on userprofile for janitors
* Identical styling for usermenu links and buttons
* dont show ban buttons on other staff
* add ban message through get parameter
* make toggleBan() trigger user update
* Add "user_banned" and "user_unbanned"
* add "user_banned" and "user_unbanned"
* Visual cue for banned user
* banned users can still log in
* visual cue for banned user in badgemenu
* locked status if banned user on upload
* banned users cannot comment
* Put "banned" text between ()
* add GetCategoryName() to template_test
* add GetCategoryName() that returns full category name from full category string
* Show search content in page title if it exists, or search category if it exists, otherwise shows "Home"
* error message when user uploads an torrent & is banned
* add torrent_uploaded_locked
* add torrent_uploaded_locked
* fix delete definitely button that never appeared
* Show delete definitely button on admin panel index
* admins can undelete a torrent by editing it's status
* Trigger ViewHandler() directly instead of redirecting
* Render the template directly instead of triggering torrent view handler
* bigger usermenu buttons once responsive design kicks in
* make btn-* class non-bold
* Responsive notification page
* visual cue for locked torrents in torrent listing
* Update search.go
* Update search.go
* Update api.go
* Update helpers.go
* Update template.go
* Update torrentParam.go
* remove "hidden" class
* Update search.go
* fix an html error
* Add files via upload
* Update admin.jet.html
* Update index.go
* Update index.go
* Update router.go
* Update torrentParam_test.go
* Update torrentParam_test.go
* fix extra "
* fix bad copypaste
* Update CHANGELOG.md
* Update guidelines.jet.html
* Update CHANGELOG.md
* add Guidelines and Moderation Guidelines
* fix missing commas
* Update torrentlist.jet.html
* Update find.go
* Update stats.go
* Update view.jet.html
* Update index.jet.html
* Update view.jet.html
* Styling to make the markdown textarea smaller by default
* Fix markdown editor in fullscreen
* Different positionsand sizes are needed in classic theme
* Add class to <td> containing description textarea, needed in order to apply a CSS rule onto it
* Increase max torrent per page
* Increase max torrent per page
* fix html error by changing an ID into a class
* change css selector from id to class
* Update oldNav.jet.html
* Update classic.css
* Update captcha.jet.html
* Fix order of torrents in admin panel index
* Update settings.jet.html
* make lang postform have same name as cookie
* Update comments.go
* Update commentlist.jet.html
* Update comments.go
When you search a username and you have a userid in the url, the conditions string doesn't have "AND" in it. I made the username search a priority and if there is not username provided, it falls back to userid in url.
* Fix report creation from report template for anonymous users
* small adjustement for styling of usernames in comment
* lower margin-top for comment content
* Update en-us.all.json
* Update CHANGELOG.md
* fix torrent link button's styling getting messed up from
* Add possibility of reporting without JS
* Add report message input and new report reason to /report/:id page
* add new report reason here too
* Update en-us.all.json
* Update CHANGELOG.md
* only show if not sukebei
* ditto
* fix label for value
* ditto
* fix overly big report message column
* Update main.css
* Update search.jet.html
* Add possibility of getting a torrent by Hash in refine
* Update search.go
* Update search.go
* fix template_test
* ditto
* fix Sprintf wrongly using a Token
* rollback that
* Update callback.go
* remove line that creates error
* fix travis