Revert "feat: add BaseUserAvatar and unify avatar usage"

This reverts commit efbb83924b.
This commit is contained in:
tim
2025-09-24 00:30:23 +08:00
parent 0f75a95dbe
commit a1eccb3b1e
15 changed files with 91 additions and 263 deletions

View File

@@ -199,8 +199,6 @@ function createFetchNotifications() {
arr.push({
...n,
src: n.comment.author.avatar,
userId: n.comment.author.id,
userName: n.comment.author.username,
iconClick: () => {
markNotificationRead(n.id)
navigateTo(`/users/${n.comment.author.id}`, { replace: true })
@@ -221,8 +219,6 @@ function createFetchNotifications() {
arr.push({
...n,
src: n.fromUser ? n.fromUser.avatar : null,
userId: n.fromUser ? n.fromUser.id : undefined,
userName: n.fromUser ? n.fromUser.username : undefined,
icon: n.fromUser ? undefined : iconMap[n.type],
iconClick: () => {
if (n.fromUser) {
@@ -235,8 +231,6 @@ function createFetchNotifications() {
arr.push({
...n,
src: n.fromUser ? n.fromUser.avatar : null,
userId: n.fromUser ? n.fromUser.id : undefined,
userName: n.fromUser ? n.fromUser.username : undefined,
icon: n.fromUser ? undefined : iconMap[n.type],
iconClick: () => {
if (n.fromUser) {
@@ -275,8 +269,6 @@ function createFetchNotifications() {
arr.push({
...n,
src: n.comment.author.avatar,
userId: n.comment.author.id,
userName: n.comment.author.username,
iconClick: () => {
markNotificationRead(n.id)
navigateTo(`/users/${n.comment.author.id}`, { replace: true })
@@ -323,8 +315,6 @@ function createFetchNotifications() {
arr.push({
...n,
src: n.fromUser ? n.fromUser.avatar : null,
userId: n.fromUser ? n.fromUser.id : undefined,
userName: n.fromUser ? n.fromUser.username : undefined,
icon: n.fromUser ? undefined : iconMap[n.type],
iconClick: () => {
if (n.post) {