mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-28 04:49:21 +02:00
Confluence add tag to replaced names (#852)
This commit is contained in:
@@ -129,7 +129,8 @@ def parse_html_page(text: str, confluence_client: Confluence) -> str:
|
|||||||
if "ri:account-id" in user.attrs
|
if "ri:account-id" in user.attrs
|
||||||
else user.attrs["ri:userkey"]
|
else user.attrs["ri:userkey"]
|
||||||
)
|
)
|
||||||
user.replaceWith(_get_user(user_id, confluence_client))
|
# Include @ sign for tagging, more clear for LLM
|
||||||
|
user.replaceWith("@" + _get_user(user_id, confluence_client))
|
||||||
return format_document_soup(soup)
|
return format_document_soup(soup)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user