# /posts create and update consistency

**URL:** <https://meta.discourse.org/t/posts-create-and-update-consistency/362783>\
**Category:** Development\
**Created:** [April 21, 2025, 9:07am UTC](https://meta.discourse.org/t/posts-create-and-update-consistency/362783 "2025-04-21T09:07:31Z")\
**Posts on this page:** 1\
**Page:** 1

## AI-generated summary

[angus](/t/-/362783/1) outlines a consistency issue in the WP Discourse plugin, where creating posts uses a single request, but updating them requires two: one to `PostController#update` for attributes and another to `TopicController#update` for the featured link. While `PostController#update` attempts to mirror `PostController#create`, it currently excludes featured link updates. Angus proposes a pull request to `discourse/discourse` to allow `featured_link` updates via `PostController#update`, which would streamline the plugin's update logic and seeks community feedback before implementation.

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [April 21, 2025, 9:07am UTC](https://meta.discourse.org/t/posts-create-and-update-consistency/362783/1 "2025-04-21T09:07:31Z")

</div>

The [WP Discourse](https://github.com/discourse/wp-discourse) plugin currently uses a single request to create posts when publishing posts to Discourse and (potentially) two requests when updating posts.

The first request on update is to `PostController#update`, for the main post attributes, and the second is to `TopicController#update` to update the topic’s featured link, if that feature is being used.

There is some attempt in `PostController#update` to maintain consistency with `PostController#create`, e.g.

> <https://github.com/discourse/discourse/blob/main/app/controllers/posts_controller.rb#L257>

However, a topic’s featured link is not currently part of that consistency.

I’d like to make a PR to `discourse/discourse` to allow topic `featured_link` updates via `PostController#update`. It would simplify the [WP Discourse](https://github.com/discourse/wp-discourse) plugin’s update logic. I wanted to canvas the change here first in case I’m missing anything.
