-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All Announcements View #175
Conversation
7084325
to
2a1c592
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just change what i mentioned, else all good
CanvasPlusPlayground/Common/Network/API Requests/GetAnnouncementsBatchRequest.swift
Outdated
Show resolved
Hide resolved
CanvasPlusPlayground/Common/Network/API Requests/GetAnnouncementsBatchRequest.swift
Outdated
Show resolved
Hide resolved
replacingOccurrences(of: "<[^>]+>", with: "", options: .regularExpression) | ||
.replacingOccurrences(of: " ", with: "") | ||
.replacingOccurrences(of: "&", with: "&") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes issue where announcements may show HTML entities (like  ).
guard announcement.course == nil, | ||
let contextCode = announcement.contextCode else { | ||
return announcement | ||
} | ||
|
||
announcement.course = courses.first(where: { course in | ||
contextCode.contains(course.id) | ||
}) | ||
|
||
return announcement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i like this
@azooz2003-bit Can you take one more look? I've updated the PR |
sure, can you rebase w main again. i wanna make sure theres no more dup key errors. |
nvm, code looks good. u can merge. ill try after u merge |
@azooz2003-bit try now |
Fixes --
Changes Made
contextCodes
.Sidebar.swift
)Screenshots (if applicable)