File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 799
799
username))
800
800
remote-accounts-matching)))
801
801
(values (tooter :id matched-account)
802
- username)))
802
+ username
803
+ matched-account)))
804
+
803
805
804
806
(defmacro with-process-follower ((username user-id
805
807
&optional
819
821
(defmethod process-event ((object follow-user-event))
820
822
(with-accessors ((username payload)) object
821
823
(with-process-follower (username user-id db :all-unfollowed-usernames)
822
- (client :follow-user user-id)
823
- (db :add-to-followers user-id)
824
- (ui :notify (format nil (_ " Followed ~a " ) username)))))
824
+ (let ((user-object (nth-value 2 (find-user-id-from-exact-acct username))))
825
+ (if user-object
826
+ (progn
827
+ (db :update-db user-object)
828
+ (client :follow-user user-id)
829
+ (db :add-to-followers user-id)
830
+ (ui :notify (format nil (_ " Followed ~a " ) username)))
831
+ (ui :notify (format nil (_ " User ~a not found on the server" ) username)
832
+ :as-error t ))))))
825
833
826
834
(defclass unfollow-user-event (program-event) ())
827
835
You can’t perform that action at this time.
0 commit comments