aboutsummaryrefslogtreecommitdiffstats
path: root/models/fixtures/follow.yml
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2022-09-20 09:59:20 +0200
committerGitHub <noreply@github.com>2022-09-20 15:59:20 +0800
commit1b630ff7cdbb2ec48b67f8e3295c142f5ad77180 (patch)
tree94b691df8f8a5ced3b5cba28f975d360cff89b31 /models/fixtures/follow.yml
parenta196302472d559f04ed9a4387156bedf26b7c55d (diff)
downloadgitea-1b630ff7cdbb2ec48b67f8e3295c142f5ad77180.tar.gz
gitea-1b630ff7cdbb2ec48b67f8e3295c142f5ad77180.zip
Fix user visible check (#21210)
Fixes #21206 If user and viewer are equal the method should return true. Also the common organization check was wrong as `count` can never be less then 0. Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'models/fixtures/follow.yml')
-rw-r--r--models/fixtures/follow.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/fixtures/follow.yml b/models/fixtures/follow.yml
index 480fa065c7..b8d35828bf 100644
--- a/models/fixtures/follow.yml
+++ b/models/fixtures/follow.yml
@@ -12,3 +12,8 @@
id: 3
user_id: 2
follow_id: 8
+
+-
+ id: 4
+ user_id: 31
+ follow_id: 33