Skip to content

Commit

Permalink
fix org public links
Browse files Browse the repository at this point in the history
  • Loading branch information
孙永强 committed Jun 6, 2024
1 parent a0350a5 commit 5b61902
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/org-admin/org-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class OrgLinks extends React.Component {
}

listOrgLinks = (page) => {
seafileAPI.orgAdminListOrgLinks(this.state.page).then(res => {
seafileAPI.orgAdminListOrgLinks(page).then(res => {
const data = res.data;
this.setState({
linkList: data.link_list,
Expand Down
2 changes: 1 addition & 1 deletion seahub/organizations/api/admin/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get(self, request):
limit = per_page + 1
org_id = request.user.org.org_id

ofs = OrgFileShare.objects.filter(org_id=org_id)[offset:offset + limit]
ofs = OrgFileShare.objects.filter(org_id=org_id).order_by('-file_share_id__ctime')[offset:offset + limit]
publinks = [ x.file_share for x in ofs ]

if len(publinks) == per_page + 1:
Expand Down

0 comments on commit 5b61902

Please sign in to comment.