@@ -358,7 +358,7 @@ public function get_discussionname() {
358358 * @return string
359359 */
360360 public function get_author_fullname () {
361- if (anonymous:: is_post_anonymous ( $ this ->discussion , $ this -> moodleoverflow , $ this -> author ->id ) ) {
361+ if ($ this ->author ->anonymous ) {
362362 return get_string ('privacy:anonym_user_name ' , 'mod_moodleoverflow ' );
363363 } else {
364364 return fullname ($ this ->author , $ this ->viewfullnames );
@@ -521,7 +521,7 @@ public function get_moodleoverflowviewlink() {
521521 * @return string
522522 */
523523 public function get_authorlink () {
524- if (anonymous:: is_post_anonymous ( $ this ->discussion , $ this -> moodleoverflow , $ this -> author ->id ) ) {
524+ if ($ this ->author ->anonymous ) {
525525 return null ;
526526 }
527527
@@ -542,7 +542,7 @@ public function get_authorlink() {
542542 */
543543 public function get_author_picture () {
544544 global $ OUTPUT ;
545- if (anonymous:: is_post_anonymous ( $ this ->discussion , $ this -> moodleoverflow , $ this -> author ->id ) ) {
545+ if ($ this ->author ->anonymous ) {
546546 return '' ;
547547 }
548548
@@ -555,7 +555,7 @@ public function get_author_picture() {
555555 * @return string
556556 */
557557 public function get_group_picture () {
558- if (anonymous:: is_post_anonymous ( $ this ->discussion , $ this -> moodleoverflow , $ this -> author ->id ) ) {
558+ if ($ this ->author ->anonymous ) {
559559 return '' ;
560560 }
561561
0 commit comments