Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

100 commits

Auteur SHA1 Message Date
akuma06
32c51a57cb User Settings Notification (WIP) 2017-05-21 18:13:28 +02:00
akuma06
4cbbb95e4f Notification for Users (WIP) 2017-05-20 20:53:05 +02:00
sfan5
4c24318cb3 More sukebei fixes (#649)
* Remove useless .Table() from db usage

This is handled via TableName() already

* Optimization: omit file-list fetching for old torrents

* Use seperate tables for reports & files on sukebei

* Fix invalid pages in nav if <5 pages total
2017-05-21 00:26:22 +10:00
akuma06
369c9151f1 Merge remote-tracking branch 'refs/remotes/origin/dev' into multi-action-torrents-mod
# Conflicts:
#	router/modpanel.go
#	router/router.go
#	service/torrent/torrent.go
2017-05-20 13:58:37 +02:00
akuma06
0d5e2abf7f Added multi action on torrents 2017-05-20 13:45:15 +02:00
sfan5
a3fa6df938 Remove bugs (#643)
* Fix S/L/D columns wasting huge amounts of space

Partially reverts 0c9cdfa8bf.

* Move last scrape below seed-bar

Also fixes the very misleading indentation

* Show category name on view page too

* Fix fucked up login page (fixes #640)

* Fix empty page on login w/o pass (fixes #634)

* Fix incorrectly colored error text in day mode

* Better readable footer in night mode

* Prepare having old uploader names on sukebei and various fixes for sukebei

* Different HTML title for sukebei
2017-05-20 20:45:27 +10:00
tomleb
7eee47b0d3 Fix bug, remove literals (#629)
* Use ModeratorDir variable

* Rename cookieHelper to cookie_helper for consistency

* Use named constant instead of literals

* Fix ability to upload when uploads are disabled

The old code let people upload under the right conditions when uploads
were disabled. (ie: User is banned and config.AdminAreStillAllowedTo is
false)

* Increase timeout (fixes #517)

* Fix inconsistent indentation *.{js, css} (fix #583)

* Fix negative page

Temporary fix. The issue was that going to a negative page caused the
sql query to have a negative offset. This caused an error in the
database query.

We need to cleanup this code, but this will work for now.

* Fix wrong PG_DATA directory due to upgrade to 9.6

* Add server status link to FAQ

* Fix failing tests

* Clarify group_vars/all and hosts doc

* Add a wrapper to protect /mod route

* Fix login page not showing form errors
2017-05-20 09:10:16 +10:00
tomleb
babf0a37f0 Cleanups and fixes (#623)
* Keep naming consistent

* Remove execute bit from files

* Default to DefaultLanguage (without passing it to the func)

* Remove commented code

* Use Content-Type to get language json

* Lines of 400 characters is dumb

* Update new repo in README

* Remove useless script since we fallback to a defaultlang

* Fix fallback language panic

* Fix uninitialized MaxPerPage when not in querystr

The issue was that the req.MaxPerPage was not set (default to 0) when
the query string didn't include "max". This makes the server query the
whole db since the resulting limit is 0.

* Fix creating empty torrents (only worked once)

* Lines of 400 characters is still dumb
2017-05-19 12:55:59 +10:00
goonyaa
5d22718abd Preload Last torrents instead of First on profile page to load them in DESC order. Should close #396 (#620) 2017-05-19 09:47:21 +10:00
PantsuDev
70f87e7aac finish repo transfer 2017-05-17 15:58:40 +10:00
Eliot Whalan
cec71bd759 Add in support for commenting on sukebei 2017-05-16 12:53:02 +10:00
Atvaark
cd844aec45 Replace 'en-us' literals with the default language
This consolidates the places where a default language has to be set.

- Removed import of the 'userService' package into the 'languages' util
  package
  This was required to prevent a cyclic import between the two packages.
- Added a 'UserRetriever' interface to read the language setting of users
  inside the 'languages' package
2017-05-14 22:10:07 +02:00
akuma06
0d7678ea8b Merge pull request #438 from mitki/patch-2
Password length
2017-05-14 00:30:23 +02:00
Mitki
1745e7e17e Update formValidator.go 2017-05-13 13:20:21 -03:00
sfan5
c0be570e54 Torrent Reassign feature for modpanel 2017-05-13 17:29:21 +02:00
sfan5
dc509ff18c Stateless cookie auth 2017-05-12 12:40:31 +02:00
sfan5
6b341c7b03 No captchas for trusted users or admins, closes #330 2017-05-12 12:05:36 +02:00
Eliot Whalan
bcaac0961f Revert "Stateless cookies (#372)"
This reverts commit 2f06fb8fa1.
2017-05-12 16:42:15 +10:00
sfan5
019f37dc4d Stateless cookies (#372)
* Remove eddie4.nl tracker

It resolves to the same IP address as leechers-paradise which we already have.

* Remove database usage from cookie auth

* Hide "Remember Me" as it doesn't work yet
2017-05-11 16:18:56 -05:00
sfan5
09ff949945 Make account bans work 2017-05-11 12:05:55 +02:00
akuma06
ceb9e039f1 Renchon can't be deleted! 2017-05-10 22:55:50 +02:00
akuma06
dee08850cf Fixing 2017-05-10 22:42:11 +02:00
sfan5
d178ab23b6 Make email verification work correctly
Previously the email was set before it had been verified, which was very wrong.
2017-05-10 22:10:31 +02:00
akuma06
45e6fc109f Edit profile unborked, please don't bork it anymore :'( 2017-05-10 20:24:37 +02:00
akuma06
b88cd33794 Merge branch 'master' of https://github.com/ewhal/nyaa into akuma06/master 2017-05-10 17:38:33 +02:00
sfan5
18b8082adf Re-fix signup without email (@Leodmanx2 broke it) 2017-05-10 15:40:23 +02:00
akuma06
46d65ba865 Fixing Mod Panel (WIP) 2017-05-10 15:08:38 +02:00
akuma06
9a435ccdc0 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	service/torrent/torrent.go
#	service/user/user.go
2017-05-10 05:33:40 +02:00
akuma06
989945f09b Shitty Moderation page
No HTML done, could'nt test with nyaa.exe :/
1 page with overview of torrents, comments, users
1 page list comments
1 page list torrents
1 page list users
1 route delete torreny
1 route delete comment
Users can be deleted and edited by their route user_profile_edit (I
think)
2017-05-10 05:24:18 +02:00
Chris MacLeod
c9b72206a5 Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* Checkpoint: it builds

The config, db, model, network, os, and public packages have had some
fixes to glaringly obvious flaws, dead code removed, and stylistic
changes.

* Style changes and old code removal in router

Router needs a lot of work done to its (lack of) error handling.

* Dead code removal and style changes

Now up to util/email/email.go. After I'm finished with the initial sweep
I'll go back and fix error handling and security issues. Then I'll fix
the broken API. Then I'll go through to add documentation and fix code
visibility.

* Finish dead code removal and style changes

Vendored libraries not touched. Everything still needs security fixes
and documentation. There's also one case of broken functionality.

* Fix accidental find-and-replace

* Style, error checking, saftey, bug fix changes

* Redo error checking erased during merge

* Re-add merge-erased fix. Make Safe safe.
2017-05-09 21:34:40 -05:00
akuma06
0cd1e6d653 Revert "Revert "Mod Page (WIP)""
This reverts commit 233c859723.
2017-05-10 04:03:25 +02:00
akuma06
bea9fdab04 Revert "Mod Page (WIP)"
This reverts commit 55590cf7b3.
2017-05-10 04:03:09 +02:00
akuma06
d4c7138081 Mod Page (WIP) 2017-05-10 04:02:23 +02:00
akuma06
9bbd544a20 Added Follow&Unfollow 2017-05-10 03:16:36 +02:00
sfan5
60ecfb797a Stateless Email Verification 2017-05-10 00:04:07 +02:00
ayame-git
4bd79520a9 i fucking hate git 2017-05-10 00:21:15 +03:00
ayame-git
ab330e77c7 merged 2017-05-10 00:02:44 +03:00
PantsuDev
381afc3952 Merge pull request #221 from bakape/db-errors
Better DB error handling
2017-05-10 06:45:26 +10:00
PantsuDev
d02672add8 Merge pull request #217 from sfan5/installgentoo
Various changes
2017-05-10 06:44:10 +10:00
bakape
c46c386981 Better DB error handling 2017-05-09 20:23:21 +03:00
ayame-git
3d10749dcd Merge branch 'master' of github.com:ewhal/nyaa into api_wip 2017-05-09 19:39:15 +03:00
akuma06
8aa8a0593c Added delete account and edit profile 2017-05-09 17:47:12 +02:00
sfan5
5bb6244564 Don't generate gravatar hash if no email 2017-05-09 17:20:19 +02:00
ayame-git
71b2b798b8 search query 2017-05-09 18:09:45 +03:00
sfan5
c78eaacf0c Fix registration without email 2017-05-09 17:06:21 +02:00
Andrew Zhao
1c44a24ab0 make user torrent list display 2017-05-08 22:21:14 -07:00
PantsuDev
7ab4d45505 Merge branch 'master' into less-realloc 2017-05-09 13:14:20 +10:00
akuma06
be6e573465 Moved translations in appropriate directory 2017-05-09 04:12:48 +02:00
akuma06
84cf511fe3 Fixed User
Profile Page, badge menu, every thing before previous commit (except
email)
Added Logout
2017-05-09 03:37:12 +02:00
Austin
a1e63a330c Make reg confirmation less cringy 2017-05-08 20:19:39 -05:00