Skip to content

Commit

Permalink
Fix: Update community_id to community_ids when fetching internal links (
Browse files Browse the repository at this point in the history
#1190)

This pull request includes changes to the src/api/handlers/misc.py and src/api/store/misc.py files to update the handling of community IDs in the internal links functionality. The most important changes are:
  • Loading branch information
abdullai-t authored Nov 28, 2024
1 parent e72a4a8 commit ed4c42c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/handlers/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def get_internal_links(self, request):
args: dict = context.args

self.validator.expect("is_footer", bool, is_required=False)
self.validator.expect("community_id", int, is_required=False)
self.validator.expect("community_ids", "str_list", is_required=False)

args, err = self.validator.verify(args, strict=True)
if err:
Expand Down
2 changes: 1 addition & 1 deletion src/api/store/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def list_all_languages(self, context, args) -> (dict, Exception):

def get_list_of_internal_links(self, context, args):
try:
community_ids = args.pop('community_id', None)
community_ids = args.pop('community_ids', None)
user = get_user_from_context(context)

if not community_ids:
Expand Down

0 comments on commit ed4c42c

Please sign in to comment.